Archive for the ‘WPF’ Category

Using the new WPF Ribbon with CompositeWPF

Thursday, November 13th, 2008

When using the new WPF Ribbon CTP with CompositeWPF (aka Prism), you probably want your modules to fill the ribbon with tabs. To let modules add content to your shell window, you have to mark the designated areas as Region.When trying to add a Region name to the ribbon with ...

WPF WebBrowser control issues with AllowsTransparency = True

Monday, July 7th, 2008

I recently played around with the new Webbrowser control delivered with the SP1 update of .NET 3.5 . But when i tried to use it in a WPF Window that has its WindowStyle set to None and AllowsTransparency to True (due to some custom window drawing), i noticed that the ...

(Very) simple WPF PropertyGrid in 20 minutes

Tuesday, May 13th, 2008

Everyone that has ever worked with the WinForms PropertyGrid will miss it in WPF. Therefore i wrote this tiny turorial on how to write your own very basic PropertyGrid on top of WPF. Disclaimer:This is not a ready to use fully-featured control for production use. It just shows in a very ...

WPF DataBinding and Value Formatting for fun and profit

Friday, April 25th, 2008

WPF offers great functionality when it comes to DataBinding. You can e.g. set a List of Customer-Objects as DataContext on a ListView and don't have to care about the rest.The following example shows a List of Customer's bound to a ListView: But what if you want to display some Properties of ...

VMWare Fusion WPF issues

Monday, March 10th, 2008

I wrote about a WPF problem i had in an earlier post.When i installed a new Virtual Machine with XP SP2 and VS2008, i encountered the same problem. So i realized that this just couldn't be a Microsoft related issue. I realized that this behavior started when i enabled DirectX ...

Strange WPF runtime behavior

Monday, March 3rd, 2008

Recently i noticed a really strange behavior in one of my development VM's. WPF is completely corrupted. There are no error messages or complaints at all. I cannot really describe what's going on, but the screenshots may be self-explaining. Even the VS2008 WPF designer doesn't work correctly anymore. ...

WPF Object Intersection and Animation

Saturday, February 2nd, 2008

Um ein bisschen mit WPF und XAML zu spielen hab ich mich ein bisschen mit Intersection und Combination von WPF Elementen beschäftigt. Da System.Windows.Media.CombinedGeometry leider immer nur 2 Objekte auf einmal miteinander verknüpfen kann(egal ob via Exclude, Xor, Union oder Intersect). Um eine CSG-ähnliche Konstruktion von Custom Path-Objekten zu erzeuge ...