Files
SourMesen 40335ce735 UI: Update to Avalonia 12, .NET 10 and replace ReactiveUI with MVVM community toolkit (#142)
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
2026-07-03 16:04:42 +09:00

28 lines
704 B
C#

using Avalonia;
using Avalonia.Data;
namespace DataBoxControl;
public abstract class DataBoxBoundColumn : DataBoxColumn
{
public static readonly StyledProperty<BindingBase?> BindingProperty =
AvaloniaProperty.Register<DataBoxBoundColumn, BindingBase?>(nameof(Binding));
public static readonly StyledProperty<BindingBase?> IsVisibleProperty =
AvaloniaProperty.Register<DataBoxBoundColumn, BindingBase?>(nameof(IsVisible));
[AssignBinding]
public BindingBase? Binding
{
get => GetValue(BindingProperty);
set => SetValue(BindingProperty, value);
}
[AssignBinding]
public BindingBase? IsVisible
{
get => GetValue(IsVisibleProperty);
set => SetValue(IsVisibleProperty, value);
}
}