Gets or sets the default DataTemplate used to display TemplatedNodes.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public DataTemplate NodeTemplate { get; set; } |
Visual Basic Copy Code |
---|
Public Property NodeTemplate As DataTemplate |
A DataTemplate instance. The default template displays a TextBlock inside a Border.
This template is used if the Template property of a TemplatedNode is not set.
The following code reproduces the default Xaml template of nodes:
Xaml Copy Code |
---|
<diag:Diagram> <TextBlock </Border> |
WpfDiagram Programmer's Guide | © 2024 MindFusion |