CanOz Blog

Neil Knobbe's Blog at vbCity

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

MarApril 2008May
SMTWTFS
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

Archives

Image Galleries

vbCity Blogs

Friday, April 18, 2008 #

I was taking another look at the WPF expander control that I talked about here and discovered that you don't actually need to use any code to get rid of the background colour of the control when collapsed.

What I discovered is that if you set the VerticalAlignment of the expander control.  You can set this property to Bottom, Center, Stretch and Top.  All but Stretch will hide the background colour of the control when the control is collapsed.

Here is the revised XAML markup for the control:

posted @ 2:09 AM | Feedback (0)