Monthly Archives: March 2011

Using Style Triggers to Give ToolTips to DataGrid Columns

Working with a DataGrid on a recent project, I had to get ToolTips on all of the DataGrid column headers.  At first go around, I had used the first thing that came to my head which was to insert a … Continue reading

Posted in WPF, XAML | Tagged , , | 2 Comments

Choosing foreground using Luminosity Contrast Ratio

When a background is chosen by the user, you can use a converter that calculates luminosity contrast ratio for a black or white foreground to choose the best foreground color. Continue reading

Posted in C#, WPF | Tagged , | 5 Comments