Setting focus to an element in WPF
So if you are trying to set focus to a WPF element, but are unable to. Here is a quick checklist to go through: - is the control you are trying to set focus to Enabled, Visible, Loaded, and Focusable....
View ArticleMy WPF Binding won’t work. WTF!
At one point or another I’m sure we’ve all been confused as to why our binding won’t work. Here’s a couple things to keep in mind: - have you set the DataContext to be the class containing the...
View ArticleAdding ValueChanged events to Dependency Objects in WPF
You may be wondering which is the best way to hookup a DependencyProperty’s Callback event handler to handle Value Changed events. The two methods to consider are: Method 1 – Use static event...
View ArticleDon’t Write WPF Converters; Write C# Inline In Your XAML Instead Using...
If you’ve used binding at all in WPF then you more then likely have also written a converter. There are lots of tutorials on creating converters, so I’m not going to discuss that in length here....
View ArticleAdding a WPF Settings Page To The Tools Options Dialog Window For Your Visual...
I recently created my first Visual Studio extension, Diff All Files, which allows you to quickly compare the changes to all files in a TFS changeset, shelveset, or pending changes (Git support coming...
View Article