In my RadDiagram, I currently have the following XAML:
<telerik:RadDiagram.ShapeStyle>
<Style TargetType="telerik:RadDiagramShape">
<Setter Property="Geometry" Value="{Binding Geometry, Mode=TwoWay}"></Setter>
</Style>
</telerik:RadDiagram.ShapeStyle>
<telerik:RadDiagram.ShapeTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeTemplate>
Now I want something another shape, with the same style, but with a ShapeTemplate like:
<telerik:RadDiagram.ShapeTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
<TextBlock Text="{Binding SomeValue}" ></TextBlock>
<TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeTemplate>
Which can also be edited (only SomeValue):
<telerik:RadDiagram.ShapeEditTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
<TextBox Text="{Binding SomeValue, Mode=TwoWay}" />
<TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeEditTemplate>
How can I accomplish having both types of shapes in the same Diagram?
Can this be done in XAML, or do I have to do this in code-behind?
For both types of solutions: How can I accomplish this?
Thanks in advance!
<telerik:RadDiagram.ShapeStyle>
<Style TargetType="telerik:RadDiagramShape">
<Setter Property="Geometry" Value="{Binding Geometry, Mode=TwoWay}"></Setter>
</Style>
</telerik:RadDiagram.ShapeStyle>
<telerik:RadDiagram.ShapeTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeTemplate>
Now I want something another shape, with the same style, but with a ShapeTemplate like:
<telerik:RadDiagram.ShapeTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
<TextBlock Text="{Binding SomeValue}" ></TextBlock>
<TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeTemplate>
Which can also be edited (only SomeValue):
<telerik:RadDiagram.ShapeEditTemplate>
<DataTemplate>
<TextBlock Text="{Binding Header}" ></TextBlock>
<TextBox Text="{Binding SomeValue, Mode=TwoWay}" />
<TextBlock Text="{Binding AnotherHeader}" ></TextBlock>
</DataTemplate>
</telerik:RadDiagram.ShapeEditTemplate>
How can I accomplish having both types of shapes in the same Diagram?
Can this be done in XAML, or do I have to do this in code-behind?
For both types of solutions: How can I accomplish this?
Thanks in advance!