ClassRadTileViewItemAutomationPeer
Provides a UI automation peer for the RadTileViewItem class, enabling interaction with automation clients by providing properties, control patterns, and methods that are relevant to item selection and toggle states within a tile view control. This class inherits from ItemAutomationPeer and implements the ISelectionItemProvider and IToggleProvider interfaces.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class RadTileViewItemAutomationPeer : ItemAutomationPeer, ISelectionItemProvider, IToggleProvider
Inheritance: objectRadTileViewItemAutomationPeer
Implements:
Constructors
RadTileViewItemAutomationPeer(object, ItemsControlAutomationPeer)
Initializes a new instance of the RadTileViewItemAutomationPeer class.
Declaration
public RadTileViewItemAutomationPeer(object owner, ItemsControlAutomationPeer peer)
Parameters
owner
peer
ItemsControlAutomationPeer
Properties
IsSelected
Gets a value that indicates whether an item is selected.
Declaration
public bool IsSelected { get; }
Property Value
true if the element is selected; otherwise false.
SelectionContainer
Gets the UI Automation provider that implements ISelectionProvider and acts as the container for the calling object.
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
IRawElementProviderSimple
The provider that supports ISelectionProvider.
ToggleState
Gets the toggle state of the control.
Declaration
public ToggleState ToggleState { get; }
Property Value
ToggleState
The ToggleState of the control.
Methods
AddToSelection()
Adds the current element to the collection of selected items.
Declaration
public void AddToSelection()
GetAutomationControlTypeCore()
When overridden in a derived class, is called by .
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
The control type.
GetClassNameCore()
When overridden in a derived class, is called by .
Declaration
protected override string GetClassNameCore()
Returns
The class name.
GetLocalizedControlTypeCore()
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
GetNameCore()
When overridden in a derived class, is called by .
GetPattern(PatternInterface)
Returns the object that supports the specified control pattern of the element that is associated with this automation peer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
An enumeration value that specifies the control pattern.
Returns
An object that supports the control pattern if patternInterface
is a supported value; otherwise, null.
RemoveFromSelection()
Removes the current element from the collection of selected items.
Declaration
public void RemoveFromSelection()
Select()
Deselects any selected items and then selects the current element.
Declaration
public void Select()
Toggle()
Cycles through the toggle states of a control.
Declaration
public void Toggle()