Northwoods.GoSilverlight 1.2.2 Assembly
TemplateApplied Event
See Also  Send Feedback
Northwoods.GoXam Namespace > Diagram Class : TemplateApplied Event

This event is raised by OnApplyTemplate, after the diagram's Diagram.Panel has been created, to allow you to establish event handlers or bindings on the DiagramPanel.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Diagram")>
Public Event TemplateApplied As EventHandler(Of DiagramEventArgs)
C# 
[CategoryAttribute("Diagram")]
public event EventHandler<DiagramEventArgs> TemplateApplied

Event Data

The event handler receives an argument of type DiagramEventArgs containing data related to this event. The following DiagramEventArgs properties provide information specific to this event.

PropertyDescription
Element Gets or sets the specific FrameworkElement that was acted upon and that is the subject of the event.
Handled Gets or sets whether this event was handled or is considered cancelled.
OriginalSource (Inherited from System.Windows.RoutedEventArgs) 
Part Gets or sets the Part that was acted upon and that is the subject of the event.

Remarks

The Loaded event in Silverlight occurs before the template has been expanded. It also may occur repeatedly as the Diagram is removed and then re-inserted into the visual tree. The InitialLayoutCompleted event may occur repeatedly as the diagram's model is replaced.

Requirements

See Also

© 2010 All Rights Reserved.