Files
Shrlalgo.RvKits/NeoUI/Melskin/Assists/BindingProxy.cs
2026-01-02 17:30:30 +08:00

37 lines
932 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VariaStudio.Assists
{
/// <summary>
/// 绑定代理,用来传递绑定对象
/// </summary>
public class BindingProxy : Freezable
{
/// <inheritdoc />
protected override Freezable CreateInstanceCore() => new BindingProxy();
/// <summary>
/// 绑定实例的数据
/// </summary>
public object Data
{
get => GetValue(DataProperty);
set { SetValue(DataProperty, value); }
}
/// <summary>
/// 附加属性Data
/// </summary>
public static readonly DependencyProperty DataProperty = DependencyProperty.Register(
nameof(Data),
typeof(object),
typeof(BindingProxy),
new PropertyMetadata(null)
);
}
}