0
是否支持數組類型自定義屬性的動畫?簡單屬性(例如Point類型)的動畫適用於我。當我將屬性更改爲PointCollection類型時,代碼停止處理該錯誤:無法解析指定對象上的TargetProperty Points [0]。作爲集合類型自定義屬性的動畫
public static readonly DependencyProperty PointsProperty =
DependencyProperty.Register("Points",
typeof(PointCollection),
typeof(Bone),
new PropertyMetadata(new PropertyChangedCallback(OnPointsChanged)));
public PointCollection Points
{
get { return (PointCollection)GetValue(PointsProperty); }
set { SetValue(PointsProperty, value); }
}
時間線是從代碼創建爲
Storyboard.SetTarget(tlArr, obj);
Storyboard.SetTargetProperty(tlArr, new PropertyPath("Points[0]"));
任何想法
屬性定義?
之所以我當它不起作用時感到非常驚訝。我添加了動畫創建的代碼片段 – AlexEzh 2010-08-23 13:43:25