Skip navigation

One of the greatest features of WPF is that it makes Desktop Development accessible to Designers like never before. Although I’m sure you’ve seen it already, I’d like to point you to Lee Brimelow’s theWPFBlog.com. Lee comes from a flash background and writes his blog from that perspective. He has a number of examples of how simple WPF makes desktop programming for designers.
 
Recently, he asked in the MSDN WPF forums if it was possible to create a glass effect on Windows XP. I answered that with the introduction of transparent windows in the June CTP, it would be easier than before. I planned to (and still plan to) create an example showing the effect, but before I even got home, Lee had his example up. It took four lines of code in WPF to do this (in Xaml it would have taken one element declaration but who’s counting)
 
   this.WindowStyle = WindowStyle.None;
   this.AllowsTransparency = true;
   this.Title = "Badass Drive Explorer";
   this.Background = new SolidColorBrush(Color.FromArgb(0, 34, 34, 34));
 
This code comes from his Window.OnInitialized() function. I know I have an example of creating a translucent window using GDI/GDI+ around here somewhere; but suffice it to say that it’s not as simple as this.
 
Now if only there were a technology that made us mere programmers better designers
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: