BindingProxy.cs 685 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows;
  6. namespace Muchinfo.MTPClient.Delivery.Utilities
  7. {
  8. public class BindingProxy : Freezable
  9. {
  10. #region 重写Freezable
  11. protected override Freezable CreateInstanceCore()
  12. {
  13. return new BindingProxy();
  14. }
  15. #endregion
  16. public object Data
  17. {
  18. get { return (object)GetValue(DataProperty); }
  19. set { SetValue(DataProperty, value); }
  20. }
  21. public static readonly DependencyProperty DataProperty = DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy));
  22. }
  23. }