Northwoods.GoWPF 2.2.4 Assembly
TemplateApplied Event

This event is raised by OnApplyTemplate, after the diagram's Panel has been created, to allow you to establish event handlers or bindings on the DiagramPanel.
Syntax
<CategoryAttribute("Diagram")>
Public Event TemplateApplied As EventHandler(Of DiagramEventArgs)
[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 (Inherited from System.Windows.RoutedEventArgs)Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSource (Inherited from System.Windows.RoutedEventArgs)Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class.
Part Gets or sets the Part that was acted upon and that is the subject of the event.
RoutedEvent (Inherited from System.Windows.RoutedEventArgs)Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance.
Source (Inherited from System.Windows.RoutedEventArgs)Gets or sets a reference to the object that raised the event.
Remarks
The Loaded event 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

Reference

Diagram Class
Diagram Members

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback