Tweaking OnApplyTemplate Event Timing in Silverlight 2(pagebrooks.com)

submitted by pbrookspbrooks(775) 3 years, 2 months ago

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.

add a comment |category: |Views: 81

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story