November 2008 Entries
When building a custom control in Silverlight 2, the OnApplyTemplate method gives you the opportunity to “wire-up” logical instances of elements in your control. When a control is loaded, it is important to realize that in Silverlight 2, this method is not triggered very early with respect to other events. In other words, you could very easily write code that fails just because of where you call it. Understanding the control’s life cycle will help in avoiding these situations.
At the time this was written, the MSDN documentation stated:
“The timing of the Loaded event in Silverlight differs from the timing of...
Open Spaces Tuesday, November 11th, 2008 Open Spaces Topic: Open Spaces - Bring your questions and ideas! Tuesday, November 11th, 2008, is the next meeting of the Pee Dee Area .NET User Group. Open Spaces is the chance for you to discuss topics with your peers. Any developer topic is fair game and welcome! This is your chance to gain valuable insight from your peers, so come equipped with your ideas! This meeting is a general open conversation and there will...
The MSDN Southern Fried Roadshow is coming to North Carolina and South Carolina in December! These free events are a great way to keep up with new Microsoft technologies, so be sure to register for an even near you!
North Charleston, SC - Register
12/2/2008 9:00 AM - 3:00 PM ET
Wilmington, NC - Register
12/3/2008 9:00 AM - 3:00 PM ET
Raleigh, NC - Register
12/4/2008 9:00 AM - 3:00 PM ET
Charlotte, NC - Register
12/5/2008 9:00 AM - 3:00 PM ET
Event Description ...
A few weeks ago in the Silverlight forums, a user asked how they could attach to the OnCompleted event of a Visual StateManager animation. At first, this sounds trivial, but the VisualStateManager does not directly expose a way to obtain a Storyboard. However, the VisualStateManager does return a list of the VisualStateGroups through the GetVisualStateGroups method. We can take advantage of this method to obtain a reference to the desired storyboard.
The FindStoryboard method defined in this helper class iterates over each of the VisualStateGroups until it finds a match, it then iterates over each Visual State in the group until...