This question is locked. New answers and comments are not allowed.
public
class
PrimitiveShape : RadDiagramShapeBase
{
public
PrimitiveShape() :
base
()
{
this
.DefaultStyleKey =
typeof
(PrimitiveShape);
}
}
I'm trying to implement a simple primitive shape by inheriting from RadDiagramShapeBase, but when adding it to the diagram no connectors is showing. Any suggestions on what I'm doing wrong here would be appreciated.<
ResourceDictionary
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:GSAB.RSProduction.Modules.OfficeTools.ViewModel.Workflow"
>
<
Style
TargetType
=
"local:PrimitiveShape"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"local:PrimitiveShape"
>
<
Border
Background
=
"{TemplateBinding Background}"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
>
<
telerik:RadDiagramShape
Geometry
=
"{telerik:CommonShape ShapeType=OctagonShape}"
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
ResourceDictionary
>