Skip to content

Commit

Permalink
Added BindingProxy class
Browse files Browse the repository at this point in the history
  • Loading branch information
TTLC198 committed Sep 9, 2023
1 parent 3203019 commit 6f97ab6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions HSMonitor/Utils/BindingProxy.cs
Original file line number Diff line number Diff line change
@@ -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));
}

0 comments on commit 6f97ab6

Please sign in to comment.