using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VariaStudio.Assists { /// /// 绑定代理,用来传递绑定对象 /// public class BindingProxy : Freezable { /// protected override Freezable CreateInstanceCore() => new BindingProxy(); /// /// 绑定实例的数据 /// public object Data { get => GetValue(DataProperty); set { SetValue(DataProperty, value); } } /// /// 附加属性:Data /// public static readonly DependencyProperty DataProperty = DependencyProperty.Register( nameof(Data), typeof(object), typeof(BindingProxy), new PropertyMetadata(null) ); } }