My Profile Photo

punker76


another private blog with developer stuff and some thoughts


  1. Watching DVDs on Raspberry Pi

    If you want watching DVDs on your Raspberry Pi with an installed OpenELEC, Raspbmc or XBian you must buy a MPEG-2 licence. But not afraid, it’s only a minimal amount. …


  2. Set NuGet pre-release build numbers with leading zeros on TeamCity

    Sometimes it comes the day that NuGet doesn’t see a newer version of a pre-release package. So if you wanted to update to a newer version you must using the Package Manager Console with the -pre flag. That’s because NuGet makes a alpanumeric comparison, so e.g. ALPHA99 is greater than ALPHA115. …


  3. WPF DataGrid using MahApps.Metro

    MahApps.Metro ships two cool styles to beautify the DataGrid control that ships with .NET 4.0 by default. With this styling you can use filtering, grouping, sorting and other standard features that you would expect of a DataGrid. It also contains a DataGridCheckBoxColumn style as well as a custom DataGridNumericUpDownColumn style. …


  4. Modern UI with MahApps.Metro

    As a MahApps.Metro member I’am often confronted with questions like: …


  5. How to set the scrolling lines for a WPF ListBox?

    The default behavior for scrolling with the mouse wheel on a ListBox or ListView scrolls the entire view 3 lines up or down. That’s for the most scenarios ok, but sometimes it could be necessary to scroll only 1 or n lines. But there is no property to set this and the ScrollViewer can not be accessed. …


  6. How to make the ToolTip follow the mouse?

    In a project of mine I needed a ToolTip. That’s easy, I know, but I want a ToolTip that follows the mouse and not the default behavior. Normally a ToolTip opens and stays at this position on the target element. After leaving the element the ToolTip closes. …


  7. Logitech K400 and Raspberry Pi

    Sometimes the debian wheezy raspbian image, Raspbmc and XBian can’t find my Logitech K400 keyboard. This tip should help. …


  8. Set the default gcc version on a Raspberry Pi

    My first experience with my Raspberry Pi was to compile some stuff. I needed an older gcc version than was pre-installed on wheezy. Installation wasn’t the problem, the problem was to use the right gcc version. After searching the web I found a helper script created by Jeff Carr-3. …


  9. Generate WPF ListView columns automatically

    Sometimes it’s not necessary to display a list of elements with a DataGrid, for a simple short way we can use the lighter ListView. My solution, also posted at stackoverflow, generates a ListView with columns for all properties with a given datatype automatically. …