浏览代码

Make sure that property is registered on a correct type.

Dariusz Komosinski 6 年之前
父节点
当前提交
ebe92b6619
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Avalonia.Controls/TreeView.cs

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

@@ -49,7 +49,7 @@ namespace Avalonia.Controls
         /// Defines the <see cref="SelectionMode"/> property.
         /// </summary>
         public static readonly StyledProperty<SelectionMode> SelectionModeProperty =
-            AvaloniaProperty.Register<SelectingItemsControl, SelectionMode>(
+            AvaloniaProperty.Register<TreeView, SelectionMode>(
                 nameof(SelectionMode));
 
         private static readonly IList Empty = new object[0];