protected override void OnPropertyChanged <T>(AvaloniaProperty <T> property, Optional <T> oldValue, BindingValue <T> newValue, BindingPriority priority) { if (property == IsFocusedProperty) { UpdatePseudoClasses(newValue.GetValueOrDefault <bool>(), null); } else if (property == DockPanel.DockProperty) { UpdatePseudoClasses(null, newValue.GetValueOrDefault <Avalonia.Controls.Dock>()); } }
protected override void OnPropertyChanged <T>( AvaloniaProperty <T> property, Optional <T> oldValue, BindingValue <T> newValue, BindingPriority priority) { base.OnPropertyChanged(property, oldValue, newValue, priority); if (property == ButtonSpinnerLocationProperty) { UpdatePseudoClasses(newValue.GetValueOrDefault <Location>()); } }
protected override void OnPropertyChanged <T>( AvaloniaProperty <T> property, Optional <T> oldValue, BindingValue <T> newValue, BindingPriority priority) { base.OnPropertyChanged(property, oldValue, newValue, priority); if (property == OrientationProperty) { UpdatePseudoClasses(newValue.GetValueOrDefault <Orientation>()); } else { if (property == MinimumProperty || property == MaximumProperty || property == ViewportSizeProperty || property == VisibilityProperty) { UpdateIsVisible(); } } }