/////////////////////////////////////////////////////////////////////////////// using System.Windows; namespace FWindSoft.Wpf { public class BindingProxy:Freezable { /* Freezable要深入理解 */ protected override Freezable CreateInstanceCore() { return new BindingProxy(); } public static readonly DependencyProperty DataProperty = DependencyProperty.Register("Data", typeof (object), typeof (BindingProxy), new UIPropertyMetadata(null)); /// /// 关联数据 /// public object Data { get { return (object) GetValue(DataProperty); } set { SetValue(DataProperty, value); } } } }