Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact


Single Instance WPF Application in .NET 3.x

If you do a search on implementing a Single Instance application in WPF you'll get quite a few results. From what I've seen there are really only 2 solutions. One is really simplistic and the other offers more functionality; both of which are fairly simple to implement. Method 1: Checking Existing Processes By Name This is the simplest to implement. All you do is check if there is more than 1 running process with the same name as the current process. Here's the code: public partial class App : A... [More]

WPF Toolkit adds Ribbon Control to .NET 3.5 SP1

The first release of the new WPF Toolkit was released today. This toolkit includes a new Ribbon control as well as the following: new WPF DataGrid, DatePicker/Calendar, and VisualStateManger. The coolest feature of this Toolkit (IMO) is the new Ribbon control. In .NET 4.0 there will be a ribbon control baked in, but thanks to the WPF Toolkit we have access to utilize the new Ribbon control today in WPF with .NET 3.5 SP1! Download the WPF Toolkit October 2008 Release: [More]

Add System Menu Items to WPF Window using Win32 API

Here's the simple code necessary to add some custom menu items to your applications System Menu within a WPF application. If you're not familiar, the System Menu is the menu that shows up if you click on the apps icon in the upper left or if you right click the app in the taskbar. [More]