Browse Source

Update buttons of ButtonSpinner on ValidSpinDirections changes

dzhelnin 7 years ago
parent
commit
a3cdb6c1ed
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Avalonia.Controls/ButtonSpinner.cs

+ 5 - 0
src/Avalonia.Controls/ButtonSpinner.cs

@@ -201,6 +201,11 @@ namespace Avalonia.Controls
             }
         }
 
+        protected override void OnValidSpinDirectionChanged(ValidSpinDirections oldValue, ValidSpinDirections newValue)
+        {
+            SetButtonUsage();
+        }
+
         /// <summary>
         /// Called when the <see cref="AllowSpin"/> property value changed.
         /// </summary>