menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewAutomationPeer - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeViewAutomationPeer

    Exposes TreeView to UI Automation

    Inheritance
    System.Object
    TreeViewAutomationPeer
    Implements
    Microsoft.UI.Xaml.Automation.Provider.ISelectionProvider
    Namespace: Syncfusion.UI.Xaml.Automation.Peers
    Assembly: Syncfusion.TreeView.WinUI.dll
    Syntax
    public class TreeViewAutomationPeer : FrameworkElementAutomationPeer, ISelectionProvider

    Constructors

    TreeViewAutomationPeer(SfTreeView)

    Initializes a new instance of the TreeViewAutomationPeer class.

    Declaration
    public TreeViewAutomationPeer(SfTreeView control)
    Parameters
    Type Name Description
    SfTreeView control

    The owner element.

    Properties

    CanSelectMultiple

    Declaration
    public bool CanSelectMultiple { get; }
    Property Value
    Type
    System.Boolean

    IsSelectionRequired

    Declaration
    public bool IsSelectionRequired { get; }
    Property Value
    Type
    System.Boolean

    Methods

    GetAutomationControlTypeCore()

    Declaration
    protected override AutomationControlType GetAutomationControlTypeCore()
    Returns
    Type
    Microsoft.UI.Xaml.Automation.Peers.AutomationControlType

    GetChildrenCore()

    Declaration
    protected override IList<AutomationPeer> GetChildrenCore()
    Returns
    Type
    System.Collections.Generic.IList<Microsoft.UI.Xaml.Automation.Peers.AutomationPeer>

    GetPatternCore(PatternInterface)

    Declaration
    protected override object GetPatternCore(PatternInterface patternInterface)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.Automation.Peers.PatternInterface patternInterface
    Returns
    Type
    System.Object

    GetSelection()

    Declaration
    public IRawElementProviderSimple[] GetSelection()
    Returns
    Type
    Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple[]

    Implements

    Microsoft.UI.Xaml.Automation.Provider.ISelectionProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved