Browse Source

Make TreeView.SelectionModeProperty public so it can be set from styles.

Dariusz Komosinski 6 years ago
parent
commit
fe5d5bca1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Avalonia.Controls/TreeView.cs

+ 1 - 1
src/Avalonia.Controls/TreeView.cs

@@ -48,7 +48,7 @@ namespace Avalonia.Controls
         /// <summary>
         /// <summary>
         /// Defines the <see cref="SelectionMode"/> property.
         /// Defines the <see cref="SelectionMode"/> property.
         /// </summary>
         /// </summary>
-        protected static readonly StyledProperty<SelectionMode> SelectionModeProperty =
+        public static readonly StyledProperty<SelectionMode> SelectionModeProperty =
             AvaloniaProperty.Register<SelectingItemsControl, SelectionMode>(
             AvaloniaProperty.Register<SelectingItemsControl, SelectionMode>(
                 nameof(SelectionMode));
                 nameof(SelectionMode));