Transform后台只提供了SetValue和SetCurrentValue没有提供SetBinding。建议用Slider事件去做。
前台:
后台:
private void s1_ValueChanged(object sender, RoutedPropertyChangedEventArgs
{
Trans1.Angle = s1.Value;
}
private void s2_ValueChanged(object sender, RoutedPropertyChangedEventArgs
{
Trans2.ScaleX = s2.Value;
Trans2.ScaleY = s2.Value;
}