Radio​Button​Automation​Peer Radio​Button​Automation​Peer Radio​Button​Automation​Peer Class

Definition

Exposes RadioButton types to Microsoft UI Automation.

public class RadioButtonAutomationPeer : ToggleButtonAutomationPeer, IRadioButtonAutomationPeer, ISelectionItemProviderpublic class RadioButtonAutomationPeer : ToggleButtonAutomationPeer, IRadioButtonAutomationPeer, ISelectionItemProviderPublic Class RadioButtonAutomationPeer Inherits ToggleButtonAutomationPeer Implements IRadioButtonAutomationPeer, ISelectionItemProvider
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties

Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)Windows.UI.Xaml.Automation.Peers.AutomationPeer.RaiseTextEditTextChangedEvent(Windows.UI.Xaml.Automation.AutomationTextEditChangeType,Windows.Foundation.Collections.IVectorView<System.String>)

Remarks

The Windows Runtime RadioButton class creates a new RadioButtonAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from RadioButtonAutomationPeer if you are deriving a custom class from RadioButton and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in RadioButtonAutomationPeer

RadioButtonAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

Constructors

RadioButtonAutomationPeer(RadioButton) RadioButtonAutomationPeer(RadioButton) RadioButtonAutomationPeer(RadioButton)

Initializes a new instance of the RadioButtonAutomationPeer class.

public RadioButtonAutomationPeer(RadioButton owner)public RadioButtonAutomationPeer(RadioButton owner)Public Sub New(owner As RadioButton)
Parameters
owner
RadioButton RadioButton RadioButton

The owner element to create for.

Attributes

Properties

IsSelected IsSelected IsSelected

Gets a value that indicates whether an item is selected.

public PlatForm::Boolean IsSelected { get; }public bool IsSelected { get; }Public ReadOnly Property IsSelected As bool
Value
bool bool bool

true if the element is selected; otherwise, false.

Attributes

SelectionContainer SelectionContainer SelectionContainer

Gets the UI automation provider that implements ISelectionProvider and acts as the container for the calling object.

public IRawElementProviderSimple SelectionContainer { get; }public IRawElementProviderSimple SelectionContainer { get; }Public ReadOnly Property SelectionContainer As IRawElementProviderSimple
Attributes

Methods

AddToSelection() AddToSelection() AddToSelection()

Adds the current element to the collection of selected items.

public void AddToSelection()public void AddToSelection()Public Function AddToSelection() As void
Attributes

RemoveFromSelection() RemoveFromSelection() RemoveFromSelection()

Removes the current element from the collection of selected items.

public void RemoveFromSelection()public void RemoveFromSelection()Public Function RemoveFromSelection() As void
Attributes

Select() Select() Select()

Clears any existing selection and then selects the current element.

public void Select()public void Select()Public Function Select() As void
Attributes

See Also