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
Initializes a new instance of the RadSegmentedControlItemView class.
public RadSegmentedControlItemView()
Fields
ActualTextColorProperty
BindableProperty
Identifies the ActualTextColor bindable property.
public static readonly BindableProperty ActualTextColorProperty
BackgroundColorProperty
BindableProperty
Identifies the BackgroundColor bindable property.
public static readonly BindableProperty BackgroundColorProperty
BackgroundProperty
BindableProperty
Identifies the Background bindable property.
public static readonly BindableProperty BackgroundProperty
BorderBrushProperty
BindableProperty
Identifies the BorderBrush bindable property.
public static readonly BindableProperty BorderBrushProperty
BorderColorProperty
BindableProperty
Identifies the BorderColor bindable property.
public static readonly BindableProperty BorderColorProperty
BorderThicknessProperty
BindableProperty
Identifies the BorderThickness bindable property.
public static readonly BindableProperty BorderThicknessProperty
ControlTemplateProperty
BindableProperty
Identifies the ControlTemplate bindable property.
public static readonly BindableProperty ControlTemplateProperty
CornerRadiusProperty
BindableProperty
Identifies the CornerRadius bindable property.
public static readonly BindableProperty CornerRadiusProperty
FontAttributesProperty
BindableProperty
Identifies the FontAttributes bindable property.
public static readonly BindableProperty FontAttributesProperty
FontFamilyProperty
BindableProperty
Identifies the FontFamily bindable property.
public static readonly BindableProperty FontFamilyProperty
FontSizeProperty
BindableProperty
Identifies the FontSize bindable property.
public static readonly BindableProperty FontSizeProperty
HorizontalTextAlignmentProperty
BindableProperty
Identifies the HorizontalTextAlignment bindable property.
public static readonly BindableProperty HorizontalTextAlignmentProperty
IsCurrentProperty
BindableProperty
Identifies the IsCurrent bindable property.
public static readonly BindableProperty IsCurrentProperty
IsMouseOverProperty
BindableProperty
Identifies the IsMouseOver bindable property.
public static readonly BindableProperty IsMouseOverProperty
IsPressedProperty
BindableProperty
Identifies the IsPressed bindable property.
public static readonly BindableProperty IsPressedProperty
IsSelectedProperty
BindableProperty
Identifies the IsSelected bindable property.
public static readonly BindableProperty IsSelectedProperty
MinimumHeightRequestProperty
BindableProperty
Identifies the MinimumHeightRequest bindable property.
public static readonly BindableProperty MinimumHeightRequestProperty
PaddingProperty
BindableProperty
Identifies the Padding bindable property.
public static readonly BindableProperty PaddingProperty
SelectedTextColorProperty
BindableProperty
Identifies the SelectedTextColor bindable property.
public static readonly BindableProperty SelectedTextColorProperty
SizeModeProperty
BindableProperty
Identifies the SizeMode bindable property.
public static readonly BindableProperty SizeModeProperty
StyleProperty
BindableProperty
Identifies the Style bindable property.
public static readonly BindableProperty StyleProperty
TextColorProperty
BindableProperty
Identifies the TextColor bindable property.
public static readonly BindableProperty TextColorProperty
TextDecorationsProperty
BindableProperty
Identifies the TextDecorations bindable property.
public static readonly BindableProperty TextDecorationsProperty
VerticalTextAlignmentProperty
BindableProperty
Identifies the VerticalTextAlignment bindable property.
public static readonly BindableProperty VerticalTextAlignmentProperty
Properties
ActualTextColor
Color
Gets the actual text color applied to this segment, which may be an interpolated value during a selection animation.
public Color ActualTextColor { get; }
Background
Brush
Gets or sets the background brush of the control.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }
BackgroundColor
Color
Gets or sets the background color of the control.
public Color BackgroundColor { get; set; }
BorderBrush
Brush
Gets or sets the border brush of the control.
public Brush BorderBrush { get; set; }
BorderColor
Color
Gets or sets the border color of the control.
public Color BorderColor { get; set; }
BorderThickness
Thickness
Gets or sets the border thickness of the control.
public Thickness BorderThickness { get; set; }
ControlTemplate
ControlTemplate
Gets or sets the control template of this view.
public ControlTemplate ControlTemplate { get; set; }
CornerRadius
CornerRadius
Gets or sets the corner radius of the control.
public CornerRadius CornerRadius { get; set; }
FontAttributes
FontAttributes
Gets or sets the font attributes of the displayed text. For more information see the FontAttributes type.
public FontAttributes FontAttributes { get; set; }
Gets or sets the font family of the displayed text.
public string FontFamily { get; set; }
Gets or sets the font size in pixels of the displayed text.
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
HorizontalTextAlignment
TextAlignment
Gets or sets the horizontal alignment of the displayed text. For more information see the TextAlignment type.
public TextAlignment HorizontalTextAlignment { get; set; }
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.
public bool IsCurrent { get; }
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.
public bool IsMouseOver { get; }
Gets a value indicating whether this segment item view is currently being pressed.
public bool IsPressed { get; }
Gets or sets a value indicating whether this segment is currently selected.
public bool IsSelected { get; set; }
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.
public double MinimumHeightRequest { get; set; }
Padding
Thickness
Gets or sets the padding of the control.
public Thickness Padding { get; set; }
SelectedTextColor
Color
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.
public Color SelectedTextColor { get; set; }
Gets or sets how this item sizes itself within the RadSegmentedControlContent layout. The default value is Star.
public SegmentedControlSizeMode SizeMode { get; set; }
Style
Style
Gets or sets the style applied to this segment item view.
public Style Style { get; set; }
TextColor
Color
Gets or sets the color of the displayed text.
public Color TextColor { get; set; }
TextDecorations
TextDecorations
Gets or sets the text decorations of the displayed text. For more information see the TextDecorations type.
public TextDecorations TextDecorations { get; set; }
VerticalTextAlignment
TextAlignment
Gets or sets the vertical alignment of the displayed text. For more information see the TextAlignment type.
public TextAlignment VerticalTextAlignment { get; set; }
Methods
protected override void ChangeVisualState()
protected override void OnApplyTemplate()
Called when the handler changes.
protected override void OnHandlerChanged()
Overrides:
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
protected override void OnPropertyChanged(string propertyName = null)