mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
27 lines
No EOL
685 B
C#
27 lines
No EOL
685 B
C#
using Avalonia;
|
|
using Avalonia.Data;
|
|
|
|
namespace DataBoxControl;
|
|
|
|
public abstract class DataBoxBoundColumn : DataBoxColumn
|
|
{
|
|
public static readonly StyledProperty<IBinding?> BindingProperty =
|
|
AvaloniaProperty.Register<DataBoxBoundColumn, IBinding?>(nameof(Binding));
|
|
|
|
public static readonly StyledProperty<IBinding?> IsVisibleProperty =
|
|
AvaloniaProperty.Register<DataBoxBoundColumn, IBinding?>(nameof(IsVisible));
|
|
|
|
[AssignBinding]
|
|
public IBinding? Binding
|
|
{
|
|
get => GetValue(BindingProperty);
|
|
set => SetValue(BindingProperty, value);
|
|
}
|
|
|
|
[AssignBinding]
|
|
public IBinding? IsVisible
|
|
{
|
|
get => GetValue(IsVisibleProperty);
|
|
set => SetValue(IsVisibleProperty, value);
|
|
}
|
|
} |