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>());
     }
 }
Esempio n. 2
0
        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>());
            }
        }
Esempio n. 3
0
        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();
                }
            }
        }