Class
CarouselItemAutomationPeer

An AutomationPeer type for the CarouselItem type.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class CarouselItemAutomationPeer : FrameworkElementAutomationPeer, ISelectionItemProvider

Inheritance: objectCarouselItemAutomationPeer

Implements: ISelectionItemProvider

Constructors

CarouselItemAutomationPeer(CarouselItem)

Initializes a new instance of the CarouselItemAutomationPeer class.

Declaration

cs-api-definition
public CarouselItemAutomationPeer(CarouselItem owner)

Parameters

owner

CarouselItem

The owner.

Properties

IsSelected

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

Declaration

cs-api-definition
public bool IsSelected { get; }

Property Value

bool

SelectionContainer

Gets the selection container for the CarouselItemAutomationPeer.

Declaration

cs-api-definition
public IRawElementProviderSimple SelectionContainer { get; }

Property Value

IRawElementProviderSimple

Methods

AddToSelection()

Adds the current CarouselItem to the selection.

Declaration

cs-api-definition
public void AddToSelection()

GetAutomationControlTypeCore()

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

GetAutomationIdCore()

Declaration

cs-api-definition
protected override string GetAutomationIdCore()

Returns

string

GetClassNameCore()

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

GetHelpTextCore()

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

GetItemStatusCore()

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

GetLocalizedControlTypeCore()

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

GetPattern(PatternInterface)

Retrieves the specified automation pattern for the CarouselItem automation peer.

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

The type of automation pattern to retrieve.

Returns

object

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

GetPositionInSetCore()

Declaration

cs-api-definition
protected override int GetPositionInSetCore()

Returns

int

GetSizeOfSetCore()

Declaration

cs-api-definition
protected override int GetSizeOfSetCore()

Returns

int

RemoveFromSelection()

Removes the current item from the selection in the carousel.

Declaration

cs-api-definition
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

cs-api-definition
public void Select()