Files
2022-11-01 15:26:08 +00:00

21 lines
517 B
C#

using System.Windows;
namespace TheXamlGuy.UI.WPF;
public class BindingProxy : Freezable
{
public static readonly DependencyProperty DataContextProperty =
DependencyProperty.Register(nameof(DataContext),
typeof(object), typeof(BindingProxy));
public object DataContext
{
get => GetValue(DataContextProperty);
set => SetValue(DataContextProperty, value);
}
protected override Freezable CreateInstanceCore()
{
return new BindingProxy();
}
}