Hi,
I would like to personnalize the ContainerShape but if i change Template property, all events (resize, connector) disappear.
Do you have a example of a full personnalized ContainerShape ?
Thanks.
This is my code
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
Grid
Background
=
"DimGray"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"35"
></
RowDefinition
>
<
RowDefinition
Height
=
"*"
></
RowDefinition
>
</
Grid.RowDefinitions
>
<
StackPanel
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Center"
Grid.Row
=
"0"
>
<
TextBlock
x:Name
=
"EntityContent"
Text
=
"test"
Width
=
"250"
Height
=
"35"
Foreground
=
"White"
/>
</
StackPanel
>
<
Grid
Grid.Row
=
"2"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"40*"
/>
<
ColumnDefinition
Width
=
"20*"
/>
<
ColumnDefinition
Width
=
"40*"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Orientation
=
"Vertical"
x:Name
=
"EntityDataIn"
Grid.Column
=
"0"
></
StackPanel
>
<
StackPanel
Orientation
=
"Vertical"
x:Name
=
"EntityDataOut"
Grid.Column
=
"2"
></
StackPanel
>
</
Grid
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>