0
kicks
Tweaking OnApplyTemplate Event Timing in Silverlight 2
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.