ClassCarouselItemAutomationPeer
An AutomationPeer type for the CarouselItem type.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.Navigation.dll
Syntax:
public class CarouselItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider
Inheritance: objectCarouselItemAutomationPeer
Implements:
Constructors
CarouselItemAutomationPeer(CarouselItem)
Initializes a new instance of the CarouselItemAutomationPeer class.
Declaration
public CarouselItemAutomationPeer(CarouselItem owner)
Parameters
owner
The owner.
Properties
IsSelected
Gets a value indicating whether the item is selected in the carousel.
SelectionContainer
Gets the selection container for the CarouselItemAutomationPeer.
Declaration
public IRawElementProviderSimple SelectionContainer { get; }
Property Value
IRawElementProviderSimple
Methods
AddToSelection()
Adds the current CarouselItem to the selection.
Declaration
public void AddToSelection()
GetAutomationControlTypeCore()
Declaration
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
AutomationControlType
GetLocalizedControlTypeCore()
Declaration
protected override string GetLocalizedControlTypeCore()
Returns
GetPattern(PatternInterface)
Retrieves the specified automation pattern for the CarouselItem automation peer.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
The type of automation pattern to retrieve.
Returns
The requested automation pattern, if available; otherwise, null.
RemoveFromSelection()
Removes the current item from the selection in the carousel.
Declaration
public void RemoveFromSelection()
Remarks
This method will update the selection state of the carousel item, ensuring that it is no longer considered part of the selected items.
Select()
Selects the current carousel item, making it the active item in the carousel.
Declaration
public void Select()