ClassRadSegmentedControlItemView
Represents a container view for a single segment within a RadSegmentedControl control. This view wraps the segment's visual representation and provides styling, mouse-over, and pressed interaction capabilities.
Definition
Namespace:Telerik.Maui.Controls.SegmentedControl
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadSegmentedControlItemView : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadSegmentedControlItemView
Implements:
Inherited Members
Constructors
RadSegmentedControlItemView()
Initializes a new instance of the RadSegmentedControlItemView class.
Declaration
public RadSegmentedControlItemView()
Fields
ActualTextColorProperty
Identifies the ActualTextColor bindable property.
Declaration
public static readonly BindableProperty ActualTextColorProperty
Field Value
BindableProperty
BackgroundColorProperty
Identifies the BackgroundColor bindable property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
BindableProperty
BackgroundProperty
Identifies the Background bindable property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
BindableProperty
BorderBrushProperty
Identifies the BorderBrush bindable property.
Declaration
public static readonly BindableProperty BorderBrushProperty
Field Value
BindableProperty
BorderColorProperty
Identifies the BorderColor bindable property.
Declaration
public static readonly BindableProperty BorderColorProperty
Field Value
BindableProperty
BorderThicknessProperty
Identifies the BorderThickness bindable property.
Declaration
public static readonly BindableProperty BorderThicknessProperty
Field Value
BindableProperty
ControlTemplateProperty
Identifies the ControlTemplate bindable property.
Declaration
public static readonly BindableProperty ControlTemplateProperty
Field Value
BindableProperty
CornerRadiusProperty
Identifies the CornerRadius bindable property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
BindableProperty
FontAttributesProperty
Identifies the FontAttributes bindable property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
BindableProperty
FontFamilyProperty
Identifies the FontFamily bindable property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
BindableProperty
FontSizeProperty
Identifies the FontSize bindable property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
BindableProperty
HorizontalTextAlignmentProperty
Identifies the HorizontalTextAlignment bindable property.
Declaration
public static readonly BindableProperty HorizontalTextAlignmentProperty
Field Value
BindableProperty
IsCurrentProperty
Identifies the IsCurrent bindable property.
Declaration
public static readonly BindableProperty IsCurrentProperty
Field Value
BindableProperty
IsMouseOverProperty
Identifies the IsMouseOver bindable property.
Declaration
public static readonly BindableProperty IsMouseOverProperty
Field Value
BindableProperty
IsPressedProperty
Identifies the IsPressed bindable property.
Declaration
public static readonly BindableProperty IsPressedProperty
Field Value
BindableProperty
IsSelectedProperty
Identifies the IsSelected bindable property.
Declaration
public static readonly BindableProperty IsSelectedProperty
Field Value
BindableProperty
MinimumHeightRequestProperty
Identifies the MinimumHeightRequest bindable property.
Declaration
public static readonly BindableProperty MinimumHeightRequestProperty
Field Value
BindableProperty
SelectedTextColorProperty
Identifies the SelectedTextColor bindable property.
Declaration
public static readonly BindableProperty SelectedTextColorProperty
Field Value
BindableProperty
SizeModeProperty
Identifies the SizeMode bindable property.
Declaration
public static readonly BindableProperty SizeModeProperty
Field Value
BindableProperty
StyleProperty
Identifies the Style bindable property.
Declaration
public static readonly BindableProperty StyleProperty
Field Value
BindableProperty
TextColorProperty
Identifies the TextColor bindable property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
BindableProperty
TextDecorationsProperty
Identifies the TextDecorations bindable property.
Declaration
public static readonly BindableProperty TextDecorationsProperty
Field Value
BindableProperty
VerticalTextAlignmentProperty
Identifies the VerticalTextAlignment bindable property.
Declaration
public static readonly BindableProperty VerticalTextAlignmentProperty
Field Value
BindableProperty
Properties
ActualTextColor
Gets the actual text color applied to this segment, which may be an interpolated value during a selection animation.
Declaration
public Color ActualTextColor { get; }
Property Value
Color
Background
Gets or sets the background brush of the control.
Declaration
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }
Property Value
Brush
BackgroundColor
Gets or sets the background color of the control.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Color
BorderBrush
Gets or sets the border brush of the control.
Declaration
public Brush BorderBrush { get; set; }
Property Value
Brush
BorderColor
Gets or sets the border color of the control.
Declaration
public Color BorderColor { get; set; }
Property Value
Color
BorderThickness
Gets or sets the border thickness of the control.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Thickness
ControlTemplate
Gets or sets the control template of this view.
Declaration
public ControlTemplate ControlTemplate { get; set; }
Property Value
ControlTemplate
CornerRadius
Gets or sets the corner radius of the control.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
CornerRadius
FontAttributes
Gets or sets the font attributes of the displayed text. For more information see the FontAttributes type.
Declaration
public FontAttributes FontAttributes { get; set; }
Property Value
FontAttributes
FontFamily
Gets or sets the font family of the displayed text.
FontSize
Gets or sets the font size in pixels of the displayed text.
Declaration
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
HorizontalTextAlignment
Gets or sets the horizontal alignment of the displayed text. For more information see the TextAlignment type.
Declaration
public TextAlignment HorizontalTextAlignment { get; set; }
Property Value
TextAlignment
IsCurrent
Gets a value indicating whether this segment item view is currently focused for keyboard navigation. This property is primarily used on desktop platforms to highlight the item that has keyboard focus.
IsMouseOver
Gets a value indicating whether the mouse cursor is currently hovering over this segment item view. This property is primarily used on desktop platforms to provide visual feedback for mouse interaction.
IsPressed
Gets a value indicating whether this segment item view is currently being pressed.
IsSelected
Gets or sets a value indicating whether this segment is currently selected.
MinimumHeightRequest
Gets or sets the minimum height request of this view. This is used to ensure that segments have a consistent minimum height, even if their content is smaller.
Declaration
public double MinimumHeightRequest { get; set; }
Property Value
SelectedTextColor
Gets or sets the text color of this segment when it is selected. When set, the text color animates between TextColor and SelectedTextColor on selection switch.
Declaration
public Color SelectedTextColor { get; set; }
Property Value
Color
SizeMode
Gets or sets how this item sizes itself within the RadSegmentedControlContent layout. The default value is Star.
Declaration
public SegmentedControlSizeMode SizeMode { get; set; }
Property Value
Style
Gets or sets the style applied to this segment item view.
Declaration
public Style Style { get; set; }
Property Value
Style
TextColor
Gets or sets the color of the displayed text.
Declaration
public Color TextColor { get; set; }
Property Value
Color
TextDecorations
Gets or sets the text decorations of the displayed text. For more information see the TextDecorations type.
Declaration
public TextDecorations TextDecorations { get; set; }
Property Value
TextDecorations
VerticalTextAlignment
Gets or sets the vertical alignment of the displayed text. For more information see the TextAlignment type.
Declaration
public TextAlignment VerticalTextAlignment { get; set; }
Property Value
TextAlignment
Methods
ChangeVisualState()
Declaration
protected override void ChangeVisualState()
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnHandlerChanged()
Called when the handler changes.
Declaration
protected override void OnHandlerChanged()
Overrides
OnHandlerChanging(HandlerChangingEventArgs)
Declaration
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
Parameters
args
HandlerChangingEventArgs
OnPropertyChanged(string)
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName