Class RadSegmentedControlHandler
Handles the platform representation the IRadSegmentedControl virtual view.
Inheritance
Namespace: Telerik.Maui
Assembly: Telerik.Maui.Core.dll
Syntax
public class RadSegmentedControlHandler : ViewHandler<IRadSegmentedControl, RadSegmentedView>, IRadSegmentedControlHandler, IViewHandler, IElementHandler
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
Microsoft.Maui.IPropertyMapper
propertyMapper
Specifies the Microsoft.Maui.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
Microsoft.Maui.IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler>
|
Properties
ImageLoader
Gets the IRadImageSourceLoader responsible for loading the images.
Declaration
public IRadImageSourceLoader ImageLoader { get; }
Property Value
IRadImageSourceLoader
|
Implements
Methods
CreatePlatformView()
Declaration
protected override RadSegmentedView CreatePlatformView()
Returns
Com.Telerik.Widget.Segmented.RadSegmentedView
|
GetDesiredSize(Double, Double)
Declaration
public override Size GetDesiredSize(double widthConstraint, double heightConstraint)
Parameters
System.Double
widthConstraint
|
System.Double
heightConstraint
|
Returns
Microsoft.Maui.Graphics.Size
|
IsSegmentEnabled(Int32)
Determines if the specified segment is enabled.
Declaration
public bool IsSegmentEnabled(int index)
Parameters
System.Int32
index
The index of the segment. |
Returns
System.Boolean
The state of the segment: True - enabled, False - disabled. |
Implements
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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
IRadSegmentedControlHandler
handler
The platform handler of the IRadSegmentedControl virtual view. |
IRadSegmentedControl
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(Int32, Boolean)
Sets the enabled state of the specified segment.
Declaration
public void SetSegmentEnabled(int index, bool isEnabled)
Parameters
System.Int32
index
The index of the segment to enable or disable. |
System.Boolean
isEnabled
The new state of the segment: True - enabled, False - disabled. |
Implements
Explicit Interface Implementations
IRadSegmentedControlHandler.get_PlatformView()
Declaration
RadSegmentedView IRadSegmentedControlHandler.get_PlatformView()
Returns
Com.Telerik.Widget.Segmented.RadSegmentedView
|