New to Telerik UI for WPFStart a free 30-day trial

An AutomationPeer type for the CarouselItem type.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

C#
public class CarouselItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider

Inheritance: objectCarouselItemAutomationPeer

Implements: ISelectionItemProvider

Constructors

Initializes a new instance of the CarouselItemAutomationPeer class.

C#
public CarouselItemAutomationPeer(CarouselItem owner)
Parameters:ownerCarouselItem

The owner.

Properties

Gets a value indicating whether the item is selected in the carousel.

C#
public bool IsSelected { get; }

SelectionContainer

IRawElementProviderSimple

Gets the selection container for the CarouselItemAutomationPeer.

C#
public IRawElementProviderSimple SelectionContainer { get; }

Methods

Adds the current CarouselItem to the selection.

C#
public void AddToSelection()
C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

C#
protected override string GetAutomationIdCore()
Returns:

string

C#
protected override string GetClassNameCore()
Returns:

string

C#
protected override string GetHelpTextCore()
Returns:

string

C#
protected override string GetItemStatusCore()
Returns:

string

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

Retrieves the specified automation pattern for the CarouselItem automation peer.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

The type of automation pattern to retrieve.

Returns:

object

The requested automation pattern, if available; otherwise, null.

C#
protected override int GetPositionInSetCore()
Returns:

int

C#
protected override int GetSizeOfSetCore()
Returns:

int

Removes the current item from the selection in the carousel.

C#
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.

Selects the current carousel item, making it the active item in the carousel.

C#
public void Select()