Class
RadSegmentedControlItemView

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:

cs-api-definition
public class RadSegmentedControlItemView : RadContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadSegmentedControlItemView

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()

Constructors

RadSegmentedControlItemView()

Initializes a new instance of the RadSegmentedControlItemView class.

Declaration

cs-api-definition
public RadSegmentedControlItemView()

Fields

ActualTextColorProperty

Identifies the ActualTextColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualTextColorProperty

Field Value

BindableProperty

BackgroundColorProperty

Identifies the BackgroundColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundColorProperty

Field Value

BindableProperty

BackgroundProperty

Identifies the Background bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundProperty

Field Value

BindableProperty

BorderBrushProperty

Identifies the BorderBrush bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderBrushProperty

Field Value

BindableProperty

BorderColorProperty

Identifies the BorderColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderColorProperty

Field Value

BindableProperty

BorderThicknessProperty

Identifies the BorderThickness bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

ControlTemplateProperty

Identifies the ControlTemplate bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ControlTemplateProperty

Field Value

BindableProperty

CornerRadiusProperty

Identifies the CornerRadius bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

FontAttributesProperty

Identifies the FontAttributes bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontFamilyProperty

Identifies the FontFamily bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Identifies the FontSize bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalTextAlignmentProperty

Field Value

BindableProperty

IsCurrentProperty

Identifies the IsCurrent bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty IsCurrentProperty

Field Value

BindableProperty

IsMouseOverProperty

Identifies the IsMouseOver bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty IsMouseOverProperty

Field Value

BindableProperty

IsPressedProperty

Identifies the IsPressed bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty IsPressedProperty

Field Value

BindableProperty

IsSelectedProperty

Identifies the IsSelected bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty IsSelectedProperty

Field Value

BindableProperty

MinimumHeightRequestProperty

Identifies the MinimumHeightRequest bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty MinimumHeightRequestProperty

Field Value

BindableProperty

SelectedTextColorProperty

Identifies the SelectedTextColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectedTextColorProperty

Field Value

BindableProperty

SizeModeProperty

Identifies the SizeMode bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SizeModeProperty

Field Value

BindableProperty

StyleProperty

Identifies the Style bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty StyleProperty

Field Value

BindableProperty

TextColorProperty

Identifies the TextColor bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextDecorationsProperty

Identifies the TextDecorations bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty TextDecorationsProperty

Field Value

BindableProperty

VerticalTextAlignmentProperty

Identifies the VerticalTextAlignment bindable property.

Declaration

cs-api-definition
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

cs-api-definition
public Color ActualTextColor { get; }

Property Value

Color

Background

Gets or sets the background brush of the control.

Declaration

cs-api-definition
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Property Value

Brush

BackgroundColor

Gets or sets the background color of the control.

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

BorderBrush

Gets or sets the border brush of the control.

Declaration

cs-api-definition
public Brush BorderBrush { get; set; }

Property Value

Brush

BorderColor

Gets or sets the border color of the control.

Declaration

cs-api-definition
public Color BorderColor { get; set; }

Property Value

Color

BorderThickness

Gets or sets the border thickness of the control.

Declaration

cs-api-definition
public Thickness BorderThickness { get; set; }

Property Value

Thickness

ControlTemplate

Gets or sets the control template of this view.

Declaration

cs-api-definition
public ControlTemplate ControlTemplate { get; set; }

Property Value

ControlTemplate

CornerRadius

Gets or sets the corner radius of the control.

Declaration

cs-api-definition
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

cs-api-definition
public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontFamily

Gets or sets the font family of the displayed text.

Declaration

cs-api-definition
public string FontFamily { get; set; }

Property Value

string

FontSize

Gets or sets the font size in pixels of the displayed text.

Declaration

cs-api-definition
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

HorizontalTextAlignment

Gets or sets the horizontal alignment of the displayed text. For more information see the TextAlignment type.

Declaration

cs-api-definition
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.

Declaration

cs-api-definition
public bool IsCurrent { get; }

Property Value

bool

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.

Declaration

cs-api-definition
public bool IsMouseOver { get; }

Property Value

bool

IsPressed

Gets a value indicating whether this segment item view is currently being pressed.

Declaration

cs-api-definition
public bool IsPressed { get; }

Property Value

bool

IsSelected

Gets or sets a value indicating whether this segment is currently selected.

Declaration

cs-api-definition
public bool IsSelected { get; set; }

Property Value

bool

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

cs-api-definition
public double MinimumHeightRequest { get; set; }

Property Value

double

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

cs-api-definition
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

cs-api-definition
public SegmentedControlSizeMode SizeMode { get; set; }

Property Value

SegmentedControlSizeMode

Style

Gets or sets the style applied to this segment item view.

Declaration

cs-api-definition
public Style Style { get; set; }

Property Value

Style

TextColor

Gets or sets the color of the displayed text.

Declaration

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public TextAlignment VerticalTextAlignment { get; set; }

Property Value

TextAlignment

Methods

ChangeVisualState()

Declaration

cs-api-definition
protected override void ChangeVisualState()

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnHandlerChanged()

Called when the handler changes.

Declaration

cs-api-definition
protected override void OnHandlerChanged()

Overrides RadContentView.OnHandlerChanged()

OnHandlerChanging(HandlerChangingEventArgs)

Declaration

cs-api-definition
protected override void OnHandlerChanging(HandlerChangingEventArgs args)

Parameters

args

HandlerChangingEventArgs

OnPropertyChanged(string)

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string