Hi,
i created a custom shape with a special datatemplate.
DataTemplate xaml:
This works fine. But how do i add a "BeginEdit" Method to the CustomShape? Thanks so far
Best Regards
Rene
i created a custom shape with a special datatemplate.
RadDiagramShape StateBox = new RadDiagramShape()
{
Content = model,
Height = 80,
Width = 150,
ContentTemplate = (DataTemplate)this.FindResource("SubItemTemplate"),
Position = e.GetPosition((RadDiagram)sender),
Geometry = droppedSwitch.Geometry,
IsResizingEnabled = false
};
DataTemplate xaml:
<
DataTemplate
x:Key
=
"SubItemTemplate"
>
<
Grid
Background
=
"Transparent"
Width
=
"{Binding Width, Mode=TwoWay}"
Height
=
"{Binding Height, Mode=TwoWay}"
>
<
TextBlock
Text
=
"{Binding SN}"
x:Name
=
"PartID"
/>
</
Grid
>
</
DataTemplate
>
This works fine. But how do i add a "BeginEdit" Method to the CustomShape? Thanks so far
Best Regards
Rene