Welcome to MSDN Blogs Sign in | Join | Help

Knowledgecast

Interesting solutions to interesting problems
Collapsible Panel Makes it to Silverlight 2 RTM

This was something that had been bothering me for a while. Silverlight 2 came out almost two months ago now and I still haven't had the time to go back and update CollapsiblePanel, my sample content control. To read more about CollapsiblePanel, go here and here.

Today I finally updated the code. It took me all of 6 minutes. Here's the changes I made:

1. Moved the generic.xaml from the root of the Knowledgecast.Controls project to a subfolder called Themes. I think this change was introduced for WPF compat.

2. Went into the generic.xaml and ensured that the vsm: prefix was only used for VisualStateManager related tags. In Silverlight 2 Beta 2 Blend would sometimes use this prefix on Style and Setter tags as well. This causes problems with the released version.

That's it! The CollapsiblePanel control is now Silverlight 2 compatible. To see the latest version in action, go here. To get the latest version of the code, go here:

Finally, I should point out that the Silverlight Toolkit (http://www.codeplex.com/Silverlight) has an Expander control that is very similar to the Collapsible Panel. The control is currently in the Preview quality band but the team behind the Toolkit make releases very rapidly so I'm sure it'll move up the quality ladder quickly.

Posted: Friday, November 28, 2008 12:05 PM by Arunjeet Singh

Comments

Knowledgecast said:

Phew! It's been a long time since my last post. I have no excuse. I've been a lazy bum and I know it.

# February 9, 2009 10:09 AM

Burrito Warrior said:

Nice job on the collapsible panel, it appeared to solve my problem.

# October 23, 2009 11:23 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker