Interface
IRadSegmentedControlHandler

Handles the platform representation the IRadSegmentedControl virtual view.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public interface IRadSegmentedControlHandler : IViewHandler, IElementHandler

Properties

ImageLoader

Gets the IRadImageSourceLoader responsible for loading the images.

Declaration

cs-api-definition
IRadImageSourceLoader ImageLoader { get; }

Property Value

IRadImageSourceLoader

PlatformView

Gets the corresponding platform view of the current IRadSegmentedControl virtual view.

Declaration

cs-api-definition
RadSegmentedView PlatformView { get; }

Property Value

RadSegmentedView

Methods

IsSegmentEnabled(int)

Determines if the specified segment is enabled.

Declaration

cs-api-definition
bool IsSegmentEnabled(int index)

Parameters

index

int

The index of the segment.

Returns

bool

The state of the segment: True - enabled, False - disabled.

OnItemsSourceChanged()

Called when the collection of items in the segmented control has changed.

Declaration

cs-api-definition
void OnItemsSourceChanged()

SetSegmentEnabled(int, bool)

Sets the enabled state of the specified segment.

Declaration

cs-api-definition
void SetSegmentEnabled(int index, bool isEnabled)

Parameters

index

int

The index of the segment to enable or disable.

isEnabled

bool

The new state of the segment: True - enabled, False - disabled.