FrameworkElement.OnApplyTemplate override.
Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight
C# Copy Code |
---|
public override void OnApplyTemplate () |
Visual Basic Copy Code |
---|
Public Overrides Sub OnApplyTemplate () |
You can override this method in an ItemPresenter-derived class for various purposes, as described in the FrameworkElement.OnApplyTemplate MSDN topic. The most common scenario includes obtaining a reference to a named element within the template, in order to attach an event handler for example. Make sure you always invoke the base' implementation of this method.
Check the CustomItemPresenter sample for an example on what you can do in this method.