using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace Mesen.Controls { public class OptionSection : ItemsControl { public static readonly StyledProperty HeaderProperty = AvaloniaProperty.Register(nameof(Header)); public static readonly StyledProperty ButtonProperty = AvaloniaProperty.Register(nameof(Button)); public string Header { get { return GetValue(HeaderProperty); } set { SetValue(HeaderProperty, value); } } public object Button { get { return GetValue(ButtonProperty); } set { SetValue(ButtonProperty, value); } } public OptionSection() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } } }