MindFusion.Scheduling for Silverlight Programmer's Guide
ItemPresenter.OnApplyTemplate Method
See Also
 





FrameworkElement.OnApplyTemplate override.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public override void OnApplyTemplate ()

Visual Basic  Copy Code

Public Overrides Sub OnApplyTemplate ()

 Remarks

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.

 See Also

ItemPresenter Members
ItemPresenter Class
MindFusion.Scheduling.Silverlight Namespace