menu

WinUI

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

    Show / Hide Table of Contents

    Class SegmentedControlAutomationPeer

    Exposes SfSegmentedControl control to UI Automation.

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

    Constructors

    SegmentedControlAutomationPeer(SfSegmentedControl)

    Initializes a new instance of the SegmentedControlAutomationPeer class.

    Declaration
    public SegmentedControlAutomationPeer(SfSegmentedControl control)
    Parameters
    Type Name Description
    SfSegmentedControl control

    The owner element.

    Properties

    CanSelectMultiple

    Gets a value that indicates whether the Microsoft UI Automation provider allows more than one child element to be selected concurrently.

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

    true, if multiple selection is allowed; otherwise, false.

    IsSelectionRequired

    Gets a value that indicates whether the UI Automation provider requires at least one child element to be selected.

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

    true, if selection is required; otherwise, false.

    Methods

    GetAutomationControlTypeCore()

    Provides the SegmentedControlAutomationPeer behavior when a Microsoft UI Automation client calls GetAutomationControlType.

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

    Returns the enum value of type Microsoft.UI.Xaml.Automation.Peers.AutomationControlType.

    GetNameCore()

    Provides the SegmentedControlAutomationPeer behavior when a Microsoft UI Automation client calls GetName.

    Declaration
    protected override string GetNameCore()
    Returns
    Type Description
    System.String

    Returns a string value.

    GetPatternCore(PatternInterface)

    Gets the control pattern that is associated with the specified Microsoft.UI.Xaml.Automation.Peers.PatternInterface.

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

    The instance of Microsoft.UI.Xaml.Automation.Peers.PatternInterface.

    Returns
    Type Description
    System.Object

    Returns the instance of Microsoft.UI.Xaml.Automation.Peers.PatternInterface.

    GetSelection()

    Retrieves a UI Automation provider for each child element that is selected.

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

    Returns the array of 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