Class
RadSegmentedControlHandler

Handles the platform representation the IRadSegmentedControl virtual view.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public class RadSegmentedControlHandler : ViewHandler<IRadSegmentedControl, RadSegmentedView>, IRadSegmentedControlHandler, IViewHandler, IElementHandler

Inheritance: objectRadSegmentedControlHandler

Implements: IElementHandlerIRadSegmentedControlHandlerIViewHandler

Constructors

RadSegmentedControlHandler()

Initializes a new instance of the RadSegmentedControlHandler class.

Declaration

cs-api-definition
public RadSegmentedControlHandler()

RadSegmentedControlHandler(IPropertyMapper)

Initializes a new instance of the RadSegmentedControlHandler class.

Declaration

cs-api-definition
public RadSegmentedControlHandler(IPropertyMapper propertyMapper)

Parameters

propertyMapper

IPropertyMapper

Specifies the IPropertyMapper to use with the handler.

Fields

SegmentedControlMapper

Maps the properties of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static readonly IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler> SegmentedControlMapper

Field Value

IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler>

Properties

ImageLoader

Gets the IRadImageSourceLoader responsible for loading the images.

Declaration

cs-api-definition
public IRadImageSourceLoader ImageLoader { get; }

Property Value

IRadImageSourceLoader

Implements IRadSegmentedControlHandler.ImageLoader

Methods

CreatePlatformView()

Declaration

cs-api-definition
protected override RadSegmentedView CreatePlatformView()

Returns

RadSegmentedView

GetDesiredSize(double, double)

Declaration

cs-api-definition
public override Size GetDesiredSize(double widthConstraint, double heightConstraint)

Parameters

widthConstraint

double

heightConstraint

double

Returns

Size

IsSegmentEnabled(int)

Determines if the specified segment is enabled.

Declaration

cs-api-definition
public bool IsSegmentEnabled(int index)

Parameters

index

int

The index of the segment.

Returns

bool

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

Implements IRadSegmentedControlHandler.IsSegmentEnabled(int)

MapDisabledSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the DisabledSegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapDisabledSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapItemsSource(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the ItemsSource property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapItemsSource(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the SegmentBackgroundColor property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the SegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapSelectedIndex(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the SelectedIndex property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapSelectedIndex(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the SelectedSegmentBackgroundColor property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

MapSelectedSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)

Maps the SelectedSegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.

Declaration

cs-api-definition
public static void MapSelectedSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)

Parameters

handler

IRadSegmentedControlHandler

The platform handler of the IRadSegmentedControl virtual view.

virtualView

IRadSegmentedControl

The cross-platform IRadSegmentedControl virtual view.

OnItemsSourceChanged()

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

Declaration

cs-api-definition
public void OnItemsSourceChanged()

Implements IRadSegmentedControlHandler.OnItemsSourceChanged()

SetSegmentEnabled(int, bool)

Sets the enabled state of the specified segment.

Declaration

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

Implements IRadSegmentedControlHandler.SetSegmentEnabled(int, bool)