mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
26 lines
733 B
C#
26 lines
733 B
C#
using System.Windows;
|
|
|
|
namespace Artemis.UI.Shared
|
|
{
|
|
internal class BindingProxy : Freezable
|
|
{
|
|
// Using a DependencyProperty as the backing store for Data. This enables animation, styling, binding, etc...
|
|
public static readonly DependencyProperty DataProperty =
|
|
DependencyProperty.Register("Data", typeof(object), typeof(BindingProxy), new UIPropertyMetadata(null));
|
|
|
|
public object Data
|
|
{
|
|
get => GetValue(DataProperty);
|
|
set => SetValue(DataProperty, value);
|
|
}
|
|
|
|
#region Overrides of Freezable
|
|
|
|
protected override Freezable CreateInstanceCore()
|
|
{
|
|
return new BindingProxy();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |