【发布时间】:2012-08-14 14:50:25
【问题描述】:
我正在尝试在控件模板中绑定折线的点。这些点应该绑定到代码隐藏中的点集合。我目前的xaml代码如下:
<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>
我是否需要创建一个依赖属性来保存点集合?
请指导..
【问题讨论】:
-
this question 的可能重复项。