Click here to Skip to main content
15,499,155 members

Articles by Clifford Nelson (Articles: 50, Tip/Tricks: 62)

Articles: 50, Tip/Tricks: 62

RSS Feed

Average article rating: 4.87

Desktop Programming
WPF
23 Mar 2016   Updated: 2 Apr 2018   Rating: 5.00/5    Votes: 17   Popularity: 6.15
Licence: CPOL    Views: 29,162     Bookmarked: 20   Downloaded: 528
Please Sign up or sign in to vote.
This gives the code to create a cursor from a character in a font.
25 Apr 2018   Updated: 25 Apr 2018   Rating: 5.00/5    Votes: 13   Popularity: 5.40
Licence: CPOL    Views: 17,807     Bookmarked: 7   Downloaded: 254
Please Sign up or sign in to vote.
Concept to create a Singleton for WPF MVVM Binding, and using Weak reference for the property that is bound to.
19 Jan 2012   Updated: 19 Jan 2012   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: CPOL    Views: 27,032     Bookmarked: 16   Downloaded: 424
Please Sign up or sign in to vote.
This value converter makes it very quick and easy to add the ability for the user to input equations in text boxes that are bound to numeric properties.
9 Aug 2015   Updated: 2 Apr 2018   Rating: 4.17/5    Votes: 14   Popularity: 4.78
Licence: CPOL    Views: 21,745     Bookmarked: 24   Downloaded: 211
Please Sign up or sign in to vote.
Presents a class to help create flexible value and multi-value converters that use the ConverterParameter to specify return values for true and false results using the ?: operator
10 Nov 2011   Updated: 27 Jan 2016   Rating: 5.00/5    Votes: 22   Popularity: 6.71
Licence: CPOL    Views: 51,578     Bookmarked: 28   Downloaded: 651
Please Sign up or sign in to vote.
How to use DescriptionAttribute for enumerations bound to a ComboBox.
2 Nov 2010   Updated: 17 May 2011   Rating: 4.83/5    Votes: 28   Popularity: 6.83
Licence: CPOL    Views: 106,499     Bookmarked: 26   Downloaded: 2,893
Please Sign up or sign in to vote.
Describes how to create a control that inherits from a base control
3 Jan 2012   Updated: 3 Jan 2012   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 21,082     Bookmarked: 18   Downloaded: 400
Please Sign up or sign in to vote.
An enumeration RadioButtion ListBox control.
18 Jun 2012   Updated: 18 Jun 2012   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 28,032     Bookmarked: 17   Downloaded: 221
Please Sign up or sign in to vote.
A generic implementation for IValueConverter.
21 Nov 2015   Updated: 21 Nov 2015   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 12,742     Bookmarked: 8   Downloaded: 243
Please Sign up or sign in to vote.
This article shows how to create a very simple control in C# that overrides the ArrangeOverride, GetVisualChild, and VisualChildrenCount to create a panel that shadows and disables contained controls.
16 Feb 2016   Updated: 16 Feb 2016   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 10,790     Bookmarked: 11   Downloaded: 198
Please Sign up or sign in to vote.
This article presents a behavior that can make another UIElement visible when the mouse down event occurs on the UIElement this behavior is attached to. Have extended this to directly support fading of a Popup control
26 Feb 2016   Updated: 26 Feb 2016   Rating: 5.00/5    Votes: 11   Popularity: 5.00
Licence: CPOL    Views: 22,681     Bookmarked: 14   Downloaded: 1,251
Please Sign up or sign in to vote.
There are cases where it might be desirable to support character input without a keyboard attached in a more embedded application where the keyboard is displayed as part of the window.
29 Feb 2016   Updated: 29 Feb 2016   Rating: 4.94/5    Votes: 16   Popularity: 5.81
Licence: CPOL    Views: 30,978     Bookmarked: 18   Downloaded: 546
Please Sign up or sign in to vote.
This article presents a control that makes it very easy to create an Image control from a font symbol, with special support for Font Awesome.
1 Apr 2016   Updated: 1 Apr 2016   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 12,281     Bookmarked: 9   Downloaded: 350
Please Sign up or sign in to vote.
This article presents a simple bar graph using an ItemsControl with a custom DataTemplate
2 May 2016   Updated: 2 May 2016   Rating: 4.92/5    Votes: 14   Popularity: 5.64
Licence: CPOL    Views: 64,441     Bookmarked: 14   Downloaded: 2,892
Please Sign up or sign in to vote.
Presents code to display bindable HTML text in a WPF RichTextBox or a WebBrowser.
5 May 2016   Updated: 5 May 2016   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 17,992     Bookmarked: 11   Downloaded: 207
Please Sign up or sign in to vote.
This presents a way to capture a PropertyChanged on a DependencyObject, in this case to capture when the Content on a ContentPresenter changes and setting focus.
14 Jun 2016   Updated: 14 Jun 2016   Rating: 4.88/5    Votes: 11   Popularity: 5.08
Licence: CPOL    Views: 22,473     Bookmarked: 8   Downloaded: 797
Please Sign up or sign in to vote.
This presents as control inherited from the Shape control for displaying an outline font.
22 Jun 2016   Updated: 22 Jun 2016   Rating: 4.88/5    Votes: 11   Popularity: 5.08
Licence: CPOL    Views: 13,082     Bookmarked: 9   Downloaded: 232
Please Sign up or sign in to vote.
Format converter to handle more cases than the StringFormat, including infinity, and NaN
21 Sep 2016   Updated: 21 Sep 2016   Rating: 4.95/5    Votes: 8   Popularity: 4.47
Licence: CPOL    Views: 10,183     Bookmarked: 16   Downloaded: 240
Please Sign up or sign in to vote.
I have had two projects that I have worked on that required a lot of graphics. In general there has been minimal interaction between the user and the graphics, so the implementation has been very straight forward.
27 Sep 2016   Updated: 27 Sep 2016   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 11,278     Bookmarked: 7   Downloaded: 96
Please Sign up or sign in to vote.
This is an alternative for "How to Embed Arbitrary Content in a WPF Control"
29 Aug 2017   Updated: 29 Aug 2017   Rating: 4.90/5    Votes: 9   Popularity: 4.68
Licence: CPOL    Views: 16,324     Bookmarked: 14   Downloaded: 212
Please Sign up or sign in to vote.
There are times when want to have associated RadioButton controls on a window, and it would be much easier to interface to these controls with a single property instead of independent properties for each RadioButton. This control allows multiple RadioButton controls to be on a single Binding.
14 Sep 2017   Updated: 14 Sep 2017   Rating: 4.83/5    Votes: 16   Popularity: 5.68
Licence: CPOL    Views: 10,632     Bookmarked: 17   Downloaded: 204
Please Sign up or sign in to vote.
A custom control that adapts to the datatype of the source.
2 Oct 2017   Updated: 2 Oct 2017   Rating: 4.53/5    Votes: 8   Popularity: 4.09
Licence: CPOL    Views: 6,980     Bookmarked: 7   Downloaded: 102
Please Sign up or sign in to vote.
This is a control that is like a Expander Control but there is both Expanded and not Expanded Content. It demonstrates some concepts on how to easily create controls whose functionality can be mostly implemented in the XAML with the code behind being mostly DependencyProperty definitions.
2 Nov 2011   Updated: 2 Nov 2011   Rating: 4.92/5    Votes: 14   Popularity: 5.64
Licence: CPOL    Views: 41,632     Bookmarked: 15   Downloaded: 546
Please Sign up or sign in to vote.
How to do dynamic binding of static properties.
13 Sep 2015   Updated: 13 Sep 2015   Rating: 4.92/5    Votes: 14   Popularity: 5.64
Licence: CPOL    Views: 20,526     Bookmarked: 18   Downloaded: 453
Please Sign up or sign in to vote.
This article presents an implementation to support IDataErrorInfo with attributes on the properties for WPF. It also covers other aspects of displaying error information using WPF.
2 Feb 2016   Updated: 2 Feb 2016   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 25,176     Bookmarked: 17   Downloaded: 538
Please Sign up or sign in to vote.
A problem with the WPF MVVM design pattern is closing a window from the ViewModel. This article presents a method that allows the use of dependency properties to be used to control the closing of a window
25 May 2016   Updated: 25 May 2016   Rating: 4.93/5    Votes: 11   Popularity: 4.93
Licence: CPOL    Views: 14,852     Bookmarked: 12   Downloaded: 94
Please Sign up or sign in to vote.
Presents simple MarkupExtension for accessing the Properties.Resources and Properties.Settings files. Also, with Resources, which are always strings, conversion is supported.
8 Jul 2011   Updated: 8 Jul 2011   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 17,070     Bookmarked: 9   Downloaded: 184
Please Sign up or sign in to vote.
A special class is needed to support binding a set of flags to a View.
5 Oct 2011   Updated: 5 Oct 2011   Rating: 3.82/5    Votes: 11   Popularity: 3.98
Licence: CPOL    Views: 32,732     Bookmarked: 24   Downloaded: 484
Please Sign up or sign in to vote.
WPF Dynamic Application Settings
14 Dec 2011   Updated: 14 Dec 2011   Rating: 4.65/5    Votes: 10   Popularity: 4.65
Licence: CPOL    Views: 28,301     Bookmarked: 15   Downloaded: 226
Please Sign up or sign in to vote.
Discovering the limitations of IValueConverter in WPF
20 Aug 2012   Updated: 20 Aug 2012   Rating: 4.91/5    Votes: 15   Popularity: 5.78
Licence: CPOL    Views: 52,983     Bookmarked: 20   Downloaded: 665
Please Sign up or sign in to vote.
This article will show you how to implement a class that will provide type conversion for another class. In this particular case will be providing conversion to and from a string.
16 Jun 2016   Updated: 16 Jun 2016   Rating: 4.93/5    Votes: 10   Popularity: 4.93
Licence: CPOL    Views: 16,003     Bookmarked: 13   Downloaded: 184
Please Sign up or sign in to vote.
This is an alternative for "Advanced WPF Localization" that adds functionality for capitalizing and pluralizing the text to be display.
26 Oct 2016   Updated: 26 Oct 2016   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 11,754     Bookmarked: 10   Downloaded: 350
Please Sign up or sign in to vote.
Presents a concept for creating a masked TextBox, and has the implementation for a TimeSpan and double value
5 Dec 2016   Updated: 5 Dec 2016   Rating: 4.89/5    Votes: 10   Popularity: 4.67
Licence: CPOL    Views: 15,713     Bookmarked: 11   Downloaded: 585
Please Sign up or sign in to vote.
This is an alternative for "WPF Loading Wait Adorner"
1 Mar 2017   Updated: 1 Mar 2017   Rating: 5.00/5    Votes: 18   Popularity: 6.28
Licence: CPOL    Views: 41,436     Bookmarked: 23   Downloaded: 2,755
Please Sign up or sign in to vote.
This is a more comprehensive example of how to implement a project with MVVMLight
24 Nov 2011   Updated: 24 Nov 2011   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 32,151     Bookmarked: 20   Downloaded: 298
Please Sign up or sign in to vote.
A generic WPF/Silverlight value converter.
26 Jan 2012   Updated: 26 Jan 2012   Rating: 4.53/5    Votes: 10   Popularity: 4.53
Licence: CPOL    Views: 38,502     Bookmarked: 13   Downloaded: 191
Please Sign up or sign in to vote.
A value binding converter for WPF.
XAML
27 Mar 2012   Updated: 27 Mar 2012   Rating: 4.96/5    Votes: 30   Popularity: 7.33
Licence: CPOL    Views: 118,488     Bookmarked: 35   Downloaded: 4,395
Please Sign up or sign in to vote.
This is just an introduction to the EventAggregator, with a sample that is easy to understand.
Productivity Apps and Services
Microsoft Office
17 Aug 2012   Updated: 17 Aug 2012   Rating: 5.00/5    Votes: 13   Popularity: 5.40
Licence: CPOL    Views: 54,884     Bookmarked: 32   Downloaded: 1,813
Please Sign up or sign in to vote.
A framework for scanning a worksheet for headers, reading and validating data, providing feedback to the user, and displaying the data in a form with the results.
21 Sep 2012   Updated: 21 Sep 2012   Rating: 4.95/5    Votes: 12   Popularity: 5.35
Licence: CPOL    Views: 35,604     Bookmarked: 14   Downloaded: 252
Please Sign up or sign in to vote.
Demonstrates how to use attributes during run time in a serious application to improve maintainability.
Programming Languages
C#
16 Feb 2012   Updated: 22 Feb 2012   Rating: 4.94/5    Votes: 26   Popularity: 6.91
Licence: CPOL    Views: 72,731     Bookmarked: 46   Downloaded: 286
Please Sign up or sign in to vote.
Performance and ideas from Anders Hejlsberg INotifyPropertyChanged
29 Feb 2012   Updated: 29 Feb 2012   Rating: 4.97/5    Votes: 17   Popularity: 5.98
Licence: CPOL    Views: 45,722     Bookmarked: 20   Downloaded: 686
Please Sign up or sign in to vote.
This article is about using Rosyln to evaluate user input in a value converter.
29 May 2012   Updated: 29 May 2012   Rating: 5.00/5    Votes: 11   Popularity: 5.00
Licence: CPOL    Views: 11,232     Bookmarked: 13   Downloaded: 29
Please Sign up or sign in to vote.
A runtime variables class to support multiple application development.
19 Apr 2016   Updated: 19 Apr 2016   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 8,730     Bookmarked: 9   Downloaded: 102
Please Sign up or sign in to vote.
A set of extension methods to support conditional Expression Bodied Functions and Properties
12 Sep 2012   Updated: 14 Sep 2012   Rating: 4.67/5    Votes: 12   Popularity: 4.86
Licence: CPOL    Views: 30,511     Bookmarked: 19   Downloaded: 0
Please Sign up or sign in to vote.
This is an alternative for "Finding prime numbers".
8 Jun 2017   Updated: 8 Jun 2017   Rating: 4.62/5    Votes: 10   Popularity: 4.62
Licence: CPOL    Views: 7,060     Bookmarked: 7   Downloaded: 97
Please Sign up or sign in to vote.
The DatePicker, in my mind, is a partial fix to many of the problems with a simple TextBox date entry. How would you like to be able to type “66” in a text box that takes a date and have it interpret it as “June 6th”? Or enter “FR” and have it interpreted as the previous Friday. Or enter “thanks” an
C# 4.0
16 Jun 2011   Updated: 16 Jun 2011   Rating: 4.67/5    Votes: 9   Popularity: 4.45
Licence: CPOL    Views: 23,522     Bookmarked: 14   Downloaded: 233
Please Sign up or sign in to vote.
Provides a way to connect to an external DependencyProperty
XML
23 Aug 2017   Updated: 23 Aug 2017   Rating: 4.97/5    Votes: 17   Popularity: 6.11
Licence: CPOL    Views: 12,000     Bookmarked: 24   Downloaded: 251
Please Sign up or sign in to vote.
This is a generic class that makes it much easier to create another class in the background. It also provides a good sample of how to use the Task.Run with the ContinueWith clause.
Web Development
HTML
5 May 2011   Updated: 5 May 2011   Rating: 4.89/5    Votes: 9   Popularity: 4.67
Licence: CPOL    Views: 22,214     Bookmarked: 14   Downloaded: 402
Please Sign up or sign in to vote.
Implements a control to support changing colors for Silverlight Shapes using VisualStateManager
15 Oct 2011   Updated: 15 Oct 2011   Rating: 4.75/5    Votes: 13   Popularity: 5.13
Licence: CPOL    Views: 28,182     Bookmarked: 17   Downloaded: 348
Please Sign up or sign in to vote.
Generic ValueConverter for Binding Enumerations to Check Boxes
19 Aug 2016   Updated: 19 Aug 2016   Rating: 4.96/5    Votes: 28   Popularity: 7.18
Licence: MIT    Views: 51,656     Bookmarked: 22   Downloaded: 3,050
Please Sign up or sign in to vote.
This is an alternative for "A WPF Custom Control for Zooming and Panning"

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.81

Database Development
12 Sep 2018   Updated: 12 Sep 2018   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 10,369     Bookmarked: 2   Downloaded: 146
Please Sign up or sign in to vote.
Method to change source of a Form’s Subform source to a Query or Table in Microsoft Access
Desktop Programming
Win32
15 Aug 2012   Updated: 2 Oct 2012   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 14,700     Bookmarked: 13   Downloaded: 161
Please Sign up or sign in to vote.
This article presents a way to display totally dynamic data in a windows grid using a dictionary.
27 Jun 2018   Updated: 27 Jun 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 5,591     Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
These are some methods I created to help with creating and deleting Windows shared directories.
WPF
2 Apr 2018   Updated: 2 Apr 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 8,530     Bookmarked: 9   Downloaded: 65
Please Sign up or sign in to vote.
This tip provides a behavior that will reset all RadioButton controls within a Control that has this behavior when the Visibility changes.
3 Apr 2018   Updated: 3 Apr 2018   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 17,849     Bookmarked: 9   Downloaded: 318
Please Sign up or sign in to vote.
Normally a popup will stay open until explicitly closed. The Behavior will close the Popup if the mouse is clicked within or outside the Popup area or leaves the Popup area.
4 Apr 2018   Updated: 4 Apr 2018   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 9,172     Bookmarked: 11   Downloaded: 118
Please Sign up or sign in to vote.
This behavior will require that for any Group of ToggleButton/Checkbox controls that are associated together, the user cannot set all to not IsChecked.
5 Apr 2018   Updated: 5 Apr 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 10,253     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
Normally, there is no need to ensure that types exactly match when using a Binding. For instance, the Control property double to and int in a ViewModel
20 Jun 2018   Updated: 20 Jun 2018   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 21,713     Bookmarked: 5   Downloaded: 260
Please Sign up or sign in to vote.
This behavior will select the entire text when a TextBox or PasswordBox gains focus
19 Mar 2018   Updated: 19 Mar 2018   Rating: 4.68/5    Votes: 11   Popularity: 4.68
Licence: CPOL    Views: 33,375     Bookmarked: 10   Downloaded: 913
Please Sign up or sign in to vote.
A alternative ToggleButton/RadioButton control
9 Aug 2015   Updated: 9 Aug 2015   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 11,701     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
This tip provides an alternate way to combine data with text in a WPF control using a ValueConverter that could be considered easier.
18 Apr 2018   Updated: 18 Apr 2018   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 8,170     Bookmarked: 12   Downloaded: 98
Please Sign up or sign in to vote.
I had a situation where a control appearing was significantly affected by the initialization of the UserControls. This behavior fixed my problem.
27 Apr 2018   Updated: 27 Apr 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 7,901     Bookmarked: 7   Downloaded: 79
Please Sign up or sign in to vote.
This is a behavior that that will reset ToggleButton derived controls to false (or a specified default value) when the container's visibility becomes false.
3 Mar 2019   Updated: 3 Mar 2019   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 9,593     Bookmarked: 9   Downloaded: 148
Please Sign up or sign in to vote.
This tip presents a behavior that will allow buttons to control the items in a WPF Selector (or ListBox) control.
3 Mar 2018   Updated: 3 Mar 2018   Rating: 4.56/5    Votes: 7   Popularity: 3.85
Licence: CPOL    Views: 7,580     Bookmarked: 7   Downloaded: 118
Please Sign up or sign in to vote.
This tip presents a way to use the ContentControl and DataTemplate to easily control an image in a Window.
2 May 2018   Updated: 2 May 2018   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 11,312     Bookmarked: 7   Downloaded: 66
Please Sign up or sign in to vote.
The tip provides a behavior that will set a control to a default value when the Visibility changes
25 Jun 2018   Updated: 25 Jun 2018   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 10,276     Bookmarked: 10   Downloaded: 257
Please Sign up or sign in to vote.
A way to create a custom derived control with the XAML file attached like a UserControl
4 Mar 2018   Updated: 4 Mar 2018   Rating: 4.56/5    Votes: 8   Popularity: 4.11
Licence: CPOL    Views: 7,285     Bookmarked: 7   Downloaded: 56
Please Sign up or sign in to vote.
Provides a way to have a string in XAML that can contain string values and references to resources that are inserting into the string like string interpolation
16 Jul 2020   Updated: 15 Aug 2020   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 7,673     Bookmarked: 6   Downloaded: 478
Please Sign up or sign in to vote.
A media player application specifically designed to support listening to language learning tracks
2 Jun 2012   Updated: 2 Jun 2012   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 34,432     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
A rather quick and dirty way of creating a filtered combo box in WPF.
6 Jun 2012   Updated: 6 Jun 2012   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 27,141     Bookmarked: 9   Downloaded: 397
Please Sign up or sign in to vote.
A little trick that will more completely fill the DatePicker background from the code-behind.
26 Aug 2015   Updated: 26 Aug 2015   Rating: 4.86/5    Votes: 6   Popularity: 3.78
Licence: CPOL    Views: 8,190     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
If you are having issues with getting the WPF Focus() method working, then maybe all you need to do is add a delay on the Initialized event before setting the focus. This solution is a nice demonstration of the features of TPL, and how easy TPL can make doing asynchronous programming in the UI.
10 Mar 2016   Updated: 10 Mar 2016   Rating: 4.78/5    Votes: 5   Popularity: 3.34
Licence: CPOL    Views: 14,942     Bookmarked: 5   Downloaded: 125
Please Sign up or sign in to vote.
When binding to an Enumeration, the Required Attribute does not work if the enumeration does not have a zero value. This validator does work.
18 Mar 2016   Updated: 18 Mar 2016   Rating: 4.18/5    Votes: 7   Popularity: 3.53
Licence: CPOL    Views: 9,411     Bookmarked: 5   Downloaded: 73
Please Sign up or sign in to vote.
There may be times when it would be nice to have a timer on a window. This is a behavior that when attached to a TextBlock, will display the time in minutes and seconds since the control was created.
24 Mar 2016   Updated: 24 Mar 2016   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 13,111     Bookmarked: 6   Downloaded: 175
Please Sign up or sign in to vote.
WPF popup enumerated button control
6 Aug 2016   Updated: 6 Aug 2016   Rating: 5.00/5    Votes: 12   Popularity: 5.21
Licence: CPOL    Views: 7,580     Bookmarked: 7   Downloaded: 63
Please Sign up or sign in to vote.
This tip presents a way to have disabled items in your ComboBox
5 Oct 2016   Updated: 5 Oct 2016   Rating: 4.94/5    Votes: 13   Popularity: 5.14
Licence: CPOL    Views: 40,381     Bookmarked: 12   Downloaded: 1,248
Please Sign up or sign in to vote.
Presents and implementation of a control that can be pressed to bring up a Menu.
5 Jan 2017   Updated: 5 Jan 2017   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 12,872     Bookmarked: 6   Downloaded: 490
Please Sign up or sign in to vote.
This is a simple popup that includes drag capability. The code should be helpful to anyone looking to create a control drag capability.
7 Feb 2017   Updated: 7 Feb 2017   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 18,254     Bookmarked: 5   Downloaded: 691
Please Sign up or sign in to vote.
This tip presents a control that is derived from the ItemsControl that uses a UniformGrid to display.
16 Aug 2017   Updated: 16 Aug 2017   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 7,352     Bookmarked: 8   Downloaded: 168
Please Sign up or sign in to vote.
This is a simple behavior that can be attached to a ContentControl and allows zooming and dragging the Content.
2 Sep 2017   Updated: 2 Sep 2017   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 9,070     Bookmarked: 8   Downloaded: 104
Please Sign up or sign in to vote.
Presents a very simple control with an IsChecked property that allows definition of two different contents depending of if IsChecked property value is true or false
26 Sep 2017   Updated: 26 Sep 2017   Rating: 5.00/5    Votes: 12   Popularity: 5.21
Licence: CPOL    Views: 17,842     Bookmarked: 10   Downloaded: 418
Please Sign up or sign in to vote.
A behavior that allows the developer to bind an IList to SelectedItems of a ListBox or MultiSelector.
11 Oct 2017   Updated: 11 Oct 2017   Rating: 5.00/5    Votes: 13   Popularity: 5.57
Licence: CPOL    Views: 43,400     Bookmarked: 18   Downloaded: 2,271
Please Sign up or sign in to vote.
This tip presents a way to display checkboxes for selection of ListBox Items instead of the default highlighting
12 Oct 2017   Updated: 12 Oct 2017   Rating: 4.81/5    Votes: 9   Popularity: 4.59
Licence: CPOL    Views: 8,740     Bookmarked: 9   Downloaded: 97
Please Sign up or sign in to vote.
A Behavior is presented that will ensure that only one Checkbox will be checked within the visual tree of the control to which this behavior is attached
17 Oct 2017   Updated: 17 Oct 2017   Rating: 5.00/5    Votes: 6   Popularity: 3.89
Licence: CPOL    Views: 11,380     Bookmarked: 9   Downloaded: 167
Please Sign up or sign in to vote.
A Behavior is presented that will ensure that only one CheckBox (ToggleButton) will be checked with the same GroupName within the visual tree of the control to which this behavior is attached.
3 Nov 2017   Updated: 3 Nov 2017   Rating: 4.94/5    Votes: 8   Popularity: 4.46
Licence: CPOL    Views: 14,354     Bookmarked: 8   Downloaded: 195
Please Sign up or sign in to vote.
This tip shows how easy it is to create a Style with DependencyProperty definitions and avoid the much heavier UserControl
1 Apr 2018   Updated: 1 Apr 2018   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 5,550     Bookmarked: 9   Downloaded: 48
Please Sign up or sign in to vote.
This is a control that is like a Expander Control but there is both Expanded and not Expanded Content. It demonstrates some concepts on how to easily create controls whose functionality can be mostly implemented in the XAML with the code behind being mostly DependencyProperty definitions.
5 Sep 2012   Updated: 5 Sep 2012   Rating: 4.57/5    Votes: 7   Popularity: 3.86
Licence: CPOL    Views: 26,813     Bookmarked: 10   Downloaded: 466
Please Sign up or sign in to vote.
The IValueConverter can be used to select a View.
21 Nov 2015   Updated: 21 Nov 2015   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 15,437     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
Using a breakpoint in this WPF Value Converter which basically does nothing can be of assistance in binding when the object is not well understood.
27 Apr 2016   Updated: 27 Apr 2016   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 11,290     Bookmarked: 3   Downloaded: 53
Please Sign up or sign in to vote.
This article presents a way to display a message in a single control with several sources in a priority order
23 Jun 2016   Updated: 23 Jun 2016   Rating: 4.38/5    Votes: 8   Popularity: 3.95
Licence: CPOL    Views: 10,750     Bookmarked: 6   Downloaded: 102
Please Sign up or sign in to vote.
This presents a simple converter that supports binding to an object, but display of a property in that class.
29 Jun 2016   Updated: 29 Jun 2016   Rating: 4.92/5    Votes: 8   Popularity: 4.45
Licence: CPOL    Views: 22,552     Bookmarked: 10   Downloaded: 230
Please Sign up or sign in to vote.
This class based on the ObservableCollection supports updating instead of replacing
2 Aug 2017   Updated: 2 Aug 2017   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 12,783     Bookmarked: 7   Downloaded: 348
Please Sign up or sign in to vote.
Fairly straight forward way of binding in a HierarchicalDataTemplate or DataTemplate to the parent ViewModel when using the TreeView control.
11 Aug 2017   Updated: 11 Aug 2017   Rating: 4.75/5    Votes: 6   Popularity: 3.70
Licence: CPOL    Views: 10,665     Bookmarked: 8   Downloaded: 149
Please Sign up or sign in to vote.
Sometimes want to have some action in a View when there are no items or are items in a collection. It is very easy to do this with a converter and binding to the Collection's Count property
10 Oct 2016   Updated: 10 Oct 2016   Rating: 3.82/5    Votes: 7   Popularity: 3.23
Licence: CPOL    Views: 15,561     Bookmarked: 4   Downloaded: 88
Please Sign up or sign in to vote.
This article presents a behavior that can be used to attach properties to a bound class.
2 Jul 2012   Updated: 2 Jul 2012   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 57,627     Bookmarked: 11   Downloaded: 463
Please Sign up or sign in to vote.
Why didn’t Microsoft provide this in the ObservableCollection?
1 Oct 2015   Updated: 1 Oct 2015   Rating: 5.00/5    Votes: 11   Popularity: 5.21
Licence: CPOL    Views: 35,454     Bookmarked: 17   Downloaded: 1,050
Please Sign up or sign in to vote.
Presents a behavior to prevent entry of anything but digits into a control
XAML
5 Dec 2015   Updated: 5 Dec 2015   Rating: 4.38/5    Votes: 5   Popularity: 3.06
Licence: CPOL    Views: 16,417     Bookmarked: 4   Downloaded: 87
Please Sign up or sign in to vote.
This tip presents a ValidationAttribute that can be applied to enumeration properties. The normal RequiredValidationAttribute normally works but if numbers are assigned to the enumeration values, the default value is zero and that may not be valid.
9 Apr 2018   Updated: 9 Apr 2018   Rating: 4.50/5    Votes: 6   Popularity: 3.50
Licence: CPOL    Views: 24,974     Bookmarked: 8   Downloaded: 377
Please Sign up or sign in to vote.
Shows how to set DataContext of View to itself using XAML and discusses the advantages of INotifyPropertyChanged to DependencyProperty
19 Dec 2015   Updated: 19 Dec 2015   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 18,402     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
It is not straight forward to change the row selected and hover colors on the Telerik RadGridView. This is a ControlTemplate that works, and works with the detail pane.
Productivity Apps and Services
Microsoft Office
25 May 2018   Updated: 25 May 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 9,322     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
VBA Code that will take a string and attempt to pull out the company name, street address, city, state, zip code, phone number, and web address
7 Sep 2018   Updated: 7 Sep 2018   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 19,499     Bookmarked: 6   Downloaded: 1,243
Please Sign up or sign in to vote.
This is a tip that has the code for selecting an Excel file and sheet for import into Microsoft Access. This includes the code required to browse for a file, and populate a ListBox with the sheets of the Excel Workbook, and the code to import an Excel spreadsheet.
Programming Languages
C#
13 Jun 2018   Updated: 13 Jun 2018   Rating: 4.93/5    Votes: 8   Popularity: 4.46
Licence: CPOL    Views: 4,840     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
This is a set of methods to help in working with Services on the local machine.
10 Aug 2020   Updated: 10 Aug 2020   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: CPOL    Views: 3,531     Bookmarked: 2   Downloaded: 324
Please Sign up or sign in to vote.
An application to define, save and watch segments of a video that I have selected
26 Aug 2016   Updated: 26 Aug 2016   Rating: 4.75/5    Votes: 10   Popularity: 4.75
Licence: CPOL    Views: 11,741     Bookmarked: 11   Downloaded: 128
Please Sign up or sign in to vote.
A simple timer that will expire if it is not nudged within a certain time. This will cause an Action to be executed.
27 Apr 2016   Updated: 27 Apr 2016   Rating: 4.08/5    Votes: 11   Popularity: 4.25
Licence: CPOL    Views: 13,040     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
I have used a Func to set the value of a property.
8 Jun 2012   Updated: 8 Jun 2012   Rating: 5.00/5    Votes: 9   Popularity: 4.77
Licence: CPOL    Views: 15,240     Bookmarked: 13   Downloaded: 269
Please Sign up or sign in to vote.
You can implement BackgroundWorker using Lambdas without any sort of helper class very easily.
25 Mar 2013   Updated: 25 Mar 2013   Rating: 4.25/5    Votes: 8   Popularity: 3.84
Licence: CPOL    Views: 10,921     Bookmarked: 8   Downloaded: 67
Please Sign up or sign in to vote.
Design to create a simple tree view that can be copy and pasted
11 Jul 2013   Updated: 11 Jul 2013   Rating: 3.86/5    Votes: 8   Popularity: 3.48
Licence: CPOL    Views: 16,411     Bookmarked: 12   Downloaded: 111
Please Sign up or sign in to vote.
Helper for serializing objects to a string
25 Jul 2013   Updated: 30 Jul 2013   Rating: 4.59/5    Votes: 35   Popularity: 6.85
Licence: CPOL    Views: 67,934     Bookmarked: 50   Downloaded: 633
Please Sign up or sign in to vote.
Helper for serializing objects in XML or binary and saving to a file
15 Mar 2016   Updated: 15 Mar 2016   Rating: 4.64/5    Votes: 12   Popularity: 4.84
Licence: CPOL    Views: 13,270     Bookmarked: 8   Downloaded: 10
Please Sign up or sign in to vote.
There is a Parse and TryParse for fields, but they cannot be used for properties. Here is a concept to create TryParse that will work for properties.
28 Nov 2016   Updated: 28 Nov 2016   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: CPOL    Views: 16,441     Bookmarked: 7   Downloaded: 801
Please Sign up or sign in to vote.
The WPF WebBrower control leaves a lot to be desired.
17 May 2018   Updated: 17 May 2018   Rating: 3.70/5    Votes: 8   Popularity: 3.34
Licence: CPOL    Views: 11,542     Bookmarked: 14   Downloaded: 91
Please Sign up or sign in to vote.
This tip provides examples of how to use the different arguments of the Linq GroupBy extension method.

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Software Developer (Senior) Clifford Nelson Consulting
United States United States
Has been working as a C# developer on contract for the last several years, including 3 years at Microsoft. Previously worked with Visual Basic and Microsoft Access VBA, and have developed code for Word, Excel and Outlook. Started working with WPF in 2007 when part of the Microsoft WPF team. For the last eight years has been working primarily as a senior WPF/C# and Silverlight/C# developer. Currently working as WPF developer with BioNano Genomics in San Diego, CA redesigning their UI for their camera system. he can be reached at qck1@hotmail.com.