diff --git a/HSMonitor/Utils/BindingProxy.cs b/HSMonitor/Utils/BindingProxy.cs new file mode 100644 index 0000000..e40a72f --- /dev/null +++ b/HSMonitor/Utils/BindingProxy.cs @@ -0,0 +1,18 @@ +using System.Windows; + +namespace HSMonitor.Utils; + +public class BindingProxy : System.Windows.Freezable +{ + protected override Freezable CreateInstanceCore() { + return new BindingProxy(); + } + + public object Data { + get { return (object)GetValue(DataProperty); } + set { SetValue(DataProperty, value); } + } + + public static readonly DependencyProperty DataProperty = + DependencyProperty.Register(nameof(Data), typeof(object), typeof(BindingProxy), new PropertyMetadata(null)); +} \ No newline at end of file