MahApps.Metro Themes

MahApps.Metro is a toolkit for creating metro-styled, modern UI WPF applications. A guide can be found in my blog post or on GitHub or the official web page http://mahapps.com.

»
Author's profile picture punker76 on modern ui, mahapps.metro, wpf, and c#

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.

»
Author's profile picture punker76 on raspberry pi, openelec, raspbmc, xbian, and xmbc

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.

»
Author's profile picture punker76 on nuget, teamcity, ci, and powershell

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.

»
Author's profile picture punker76 on modern ui, mahapps.metro, wpf, and c#

Modern UI with MahApps.Metro

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

»
Author's profile picture punker76 on modern ui, mahapps.metro, wpf, and c#

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.

»
Author's profile picture punker76 on wpf and c#

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.

»
Author's profile picture punker76 on wpf and c#

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.

»
Author's profile picture punker76 on raspberry pi, openelec, raspbmc, xbian, and xmbc

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.

»
Author's profile picture punker76 on raspberry pi, openelec, raspbmc, xbian, and xmbc

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.

»
Author's profile picture punker76 on wpf, c#, and stack overflow