Category: WPF

XamDockManager – Setting keyboard focus back to the add row

For a project at work we needed the ability for the user to use the tab button on an Infragistics XamDataGrid to submit the record they are adding and set the focus back to the first cell of the data grid. For whatever reason this is not a built in method (have they not tried…

XamComboEditor / ComboEditorTool Setting Default Text

Want to have default text shown when no item is selected in a combo box, such as “Please Select”? This can easily be achieved using a binding converter such as: Then in your XAML it can be used like this:

Empty WPF ListBox

I needed to show some text when a ListBox was empty, a quick Google turned up a StackOverflow question that was just the ticket!

Getting a .NET Color Name

I needed to find out the standard .NET colour name for for a Color object, assuming the Color object was a standard .NET colour! As there is no built in way of doing this I created a simple helper class, the code is below.

Using XamDockManager with Caliburn.Micro

I asked a question on StackOverflow about using the Infragistics XamDockManger with Caliburn.Micro, Marco Amendola came up with several ways to do it and I chose to implement my own docking manager. If you want to skip my ramblings you can find the code on bitbucket or as an attachment to this post. You will…

Debugging WPF Bindings

A very handy guide to debugging WPF bindings.