I am trying to bind the points of a polyline in control template. The points should bind to a point collection in the codebehind. My current xaml code is as follows:
<Style TargetType="{x:Type c:LineDragThumb}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type c:LineDragThumb}">
<Polyline Stroke="Transparent" Points="{Binding}"
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Should I need to make a dependency property to hold the point collection?
Please guide..