我创建了简单的自定义控件,该控件从Control派生。 这个控件有2个DP,我在ScaleTransform中绑定xaml。 后面的代码。 public class MyControl : Control
{
public static readonly DependencyProperty ScaleXProperty = DependencyProperty.Register(
我有一个自定义类,说'MyCanvas'派生自wpf Canvas类。 MyCanvas具有指定画布的比例变换的依赖属性“比例”。现在当缩放比例的值发生变化时,我想要将变换从旧值转换为新值。因为我正在使用LayoutTransform.BeginAnimation(...)方法。 代码: //This represents the time it will take to zoom
Durati