Class RadSegmentedControlHandler
Handles the platform representation the IRad
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 Rad
Declaration
public RadSegmentedControlHandler()
RadSegmentedControlHandler(IPropertyMapper)
Initializes a new instance of the Rad
Declaration
public RadSegmentedControlHandler(IPropertyMapper propertyMapper)
Parameters
Microsoft. Specifies the Microsoft. |
Fields
SegmentedControlMapper
Maps the properties of the IRad
Declaration
public static readonly IPropertyMapper<IRadSegmentedControl, IRadSegmentedControlHandler> SegmentedControlMapper
Field Value
Microsoft.
|
Properties
ImageLoader
Gets the IRad
Declaration
public IRadImageSourceLoader ImageLoader { get; }
Property Value
Implements
Methods
CreatePlatformView()
Declaration
protected override RadSegmentedView CreatePlatformView()
Returns
Com.
|
GetDesiredSize(Double, Double)
Declaration
public override Size GetDesiredSize(double widthConstraint, double heightConstraint)
Parameters
System.
|
System.
|
Returns
Microsoft.
|
IsSegmentEnabled(Int32)
Determines if the specified segment is enabled.
Declaration
public bool IsSegmentEnabled(int index)
Parameters
System. The index of the segment. |
Returns
System. The state of the segment: True - enabled, False - disabled. |
Implements
MapDisabledSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Disabled
Declaration
public static void MapDisabledSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapItemsSource(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Items
Declaration
public static void MapItemsSource(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Segment
Declaration
public static void MapSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Segment
Declaration
public static void MapSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapSelectedIndex(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Selected
Declaration
public static void MapSelectedIndex(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Selected
Declaration
public static void MapSelectedSegmentBackgroundColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
MapSelectedSegmentTextColor(IRadSegmentedControlHandler, IRadSegmentedControl)
Maps the Selected
Declaration
public static void MapSelectedSegmentTextColor(IRadSegmentedControlHandler handler, IRadSegmentedControl virtualView)
Parameters
IRad The platform handler of the IRad |
IRad The cross-platform IRad |
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. The index of the segment to enable or disable. |
System. The new state of the segment: True - enabled, False - disabled. |
Implements
Explicit Interface Implementations
IRadSegmentedControlHandler.get_PlatformView()
Declaration
RadSegmentedView IRadSegmentedControlHandler.get_PlatformView()
Returns
Com.
|