Category Archives: WPF

Annoying MouseOver effekt with ListView and GridView

Today at work, I ran into an issue with the ListView which contains a GridView. If the mouse hovers over the ListView, it shows a little annoying blue border at the top, as you can see in the screenshots below. … Continue reading

Posted in Development, WPF | Tagged , , | Leave a comment

WPF Quick Tip: How to set ‘auto’ value programmatically to width or height attribute

Easily use the NaN (Not a Number) constant of the double struct:

Posted in Development, WPF | Tagged , | Leave a comment

Sharing image resources between WPF and ASP.NET

A question about sharing images between WPF and ASP.NET was asked in a thread at StackOverflow.com (http://stackoverflow.com/questions/12882628/). This sample explains the solution in a more detailed way than on StackOverflow. A library project contains two images, which have to be … Continue reading

Posted in ASP.NET, C#, Development, WPF | Tagged , , | Leave a comment

WPF: Get the source value in ConvertBack() method

The other day I needed the source value in the ConvertBack() method of a converter class. Unfortunately the arguments do not provide this value. My first try was to bind the value as a ConvertParameter, without success. The next idea … Continue reading

Posted in C#, Development, WPF | Tagged , | Leave a comment

Using DataGridTemplateColumns as StaticResources

To use a DataGridTemplateColumns as StaticResources is not as simple as it sounds, because the property has no setter. But there is a quick work around to avoid much pasting:

Posted in Development, WPF | Tagged , , | Leave a comment