BindingProxy.cs 887 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. namespace MECF.Framework.UI.Core.ExtendedControls
  8. {
  9. public class BindingProxy : Freezable
  10. {
  11. #region Overrides of Freezable
  12. protected override Freezable CreateInstanceCore()
  13. {
  14. return new BindingProxy();
  15. }
  16. #endregion
  17. public object Data
  18. {
  19. get { return (object)GetValue(DataProperty); }
  20. set { SetValue(DataProperty, value); }
  21. }
  22. // Using a DependencyProperty as the backing store for Data. This enables animation, styling, binding, etc...
  23. public static readonly DependencyProperty DataProperty =
  24. DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy), new UIPropertyMetadata(null));
  25. }
  26. }