ClassRadSegmentedControlHandler
Handles the platform representation the IRadSegmentedControl virtual view.
Definition
Namespace:Telerik.Maui
Assembly:Telerik.Maui.Core.dll
Syntax:
public class RadSegmentedControlHandler : ViewHandler<IRadSegmentedControl, RadSegmentedView>, IRadSegmentedControlHandler, IViewHandler, IElementHandler
Inheritance: objectRadSegmentedControlHandler
Implements:
Constructors
RadSegmentedControlHandler()
Initializes a new instance of the RadSegmentedControlHandler class.
Declaration
public RadSegmentedControlHandler()
RadSegmentedControlHandler(IPropertyMapper)
Initializes a new instance of the RadSegmentedControlHandler class.
Declaration
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
public static readonly IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler> SegmentedControlMapper
Field Value
IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler>
Properties
ImageLoader
Gets the IRadImageSourceLoader responsible for loading the images.
Declaration
public IRadImageSourceLoader ImageLoader { get; }
Property Value
Implements
Methods
CreatePlatformView()
Declaration
protected override RadSegmentedView CreatePlatformView()
Returns
RadSegmentedView
IsSegmentEnabled(int)
Determines if the specified segment is enabled.
MapDisabledSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the DisabledSegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapDisabledSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapItemsSource(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the ItemsSource property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapItemsSource(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the SegmentBackgroundColor property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the SegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapSelectedIndex(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the SelectedIndex property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapSelectedIndex(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the SelectedSegmentBackgroundColor property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
MapSelectedSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the SelectedSegmentTextColor property of the IRadSegmentedControl virtual view to the corresponding platform view.
Declaration
public static void MapSelectedSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
handler
The platform handler of the IRadSegmentedControl virtual view.
virtualView
The cross-platform IRadSegmentedControl virtual view.
OnItemsSourceChanged()
Called when the collection of items in the segmented control has changed.
Declaration
public void OnItemsSourceChanged()
Implements
SetSegmentEnabled(int, bool)
Sets the enabled state of the specified segment.