using Avalonia; using MiniMvvm; namespace ControlCatalog.ViewModels { public class ExpanderPageViewModel : ViewModelBase { private CornerRadius _cornerRadius; private bool _rounded; public CornerRadius CornerRadius { get => _cornerRadius; private set => RaiseAndSetIfChanged(ref _cornerRadius, value); } public bool Rounded { get => _rounded; set { if (RaiseAndSetIfChanged(ref _rounded, value)) CornerRadius = _rounded ? new CornerRadius(25) : default; } } } }