Browse Source
* Add TreeViewAutomationPeer for TreeView * Add TreeViewItemAutomationPeer for TreeViewItem * Add missing xml docpull/15701/head
committed by
GitHub
4 changed files with 46 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
namespace Avalonia.Automation.Peers; |
|||
|
|||
public class TreeViewAutomationPeer : ItemsControlAutomationPeer |
|||
{ |
|||
public TreeViewAutomationPeer(TreeView owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.Tree; |
|||
} |
|||
} |
|||
@ -0,0 +1,16 @@ |
|||
using Avalonia.Controls; |
|||
|
|||
namespace Avalonia.Automation.Peers; |
|||
|
|||
public class TreeViewItemAutomationPeer : ItemsControlAutomationPeer |
|||
{ |
|||
public TreeViewItemAutomationPeer(TreeViewItem owner) |
|||
: base(owner) |
|||
{ |
|||
} |
|||
|
|||
protected override AutomationControlType GetAutomationControlTypeCore() |
|||
{ |
|||
return AutomationControlType.TreeItem; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue