New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
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

Initializes a new instance of the RadSegmentedControlItemView class.

C#
public RadSegmentedControlItemView()

Fields

ActualTextColorProperty

BindableProperty

Identifies the ActualTextColor bindable property.

C#
public static readonly BindableProperty ActualTextColorProperty

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor bindable property.

C#
public static readonly BindableProperty BackgroundColorProperty

BackgroundProperty

BindableProperty

Identifies the Background bindable property.

C#
public static readonly BindableProperty BackgroundProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush bindable property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderColorProperty

BindableProperty

Identifies the BorderColor bindable property.

C#
public static readonly BindableProperty BorderColorProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness bindable property.

C#
public static readonly BindableProperty BorderThicknessProperty

ControlTemplateProperty

BindableProperty

Identifies the ControlTemplate bindable property.

C#
public static readonly BindableProperty ControlTemplateProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius bindable property.

C#
public static readonly BindableProperty CornerRadiusProperty

FontAttributesProperty

BindableProperty

Identifies the FontAttributes bindable property.

C#
public static readonly BindableProperty FontAttributesProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily bindable property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize bindable property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HorizontalTextAlignment bindable property.

C#
public static readonly BindableProperty HorizontalTextAlignmentProperty

IsCurrentProperty

BindableProperty

Identifies the IsCurrent bindable property.

C#
public static readonly BindableProperty IsCurrentProperty

IsMouseOverProperty

BindableProperty

Identifies the IsMouseOver bindable property.

C#
public static readonly BindableProperty IsMouseOverProperty

IsPressedProperty

BindableProperty

Identifies the IsPressed bindable property.

C#
public static readonly BindableProperty IsPressedProperty

IsSelectedProperty

BindableProperty

Identifies the IsSelected bindable property.

C#
public static readonly BindableProperty IsSelectedProperty

Identifies the MinimumHeightRequest bindable property.

C#
public static readonly BindableProperty MinimumHeightRequestProperty

PaddingProperty

BindableProperty

Identifies the Padding bindable property.

C#
public static readonly BindableProperty PaddingProperty

Identifies the SelectedTextColor bindable property.

C#
public static readonly BindableProperty SelectedTextColorProperty

SizeModeProperty

BindableProperty

Identifies the SizeMode bindable property.

C#
public static readonly BindableProperty SizeModeProperty

StyleProperty

BindableProperty

Identifies the Style bindable property.

C#
public static readonly BindableProperty StyleProperty

TextColorProperty

BindableProperty

Identifies the TextColor bindable property.

C#
public static readonly BindableProperty TextColorProperty

TextDecorationsProperty

BindableProperty

Identifies the TextDecorations bindable property.

C#
public static readonly BindableProperty TextDecorationsProperty

Identifies the VerticalTextAlignment bindable property.

C#
public static readonly BindableProperty VerticalTextAlignmentProperty

Properties

Gets the actual text color applied to this segment, which may be an interpolated value during a selection animation.

C#
public Color ActualTextColor { get; }

Gets or sets the background brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Gets or sets the background color of the control.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border brush of the control.

C#
public Brush BorderBrush { get; set; }

Gets or sets the border color of the control.

C#
public Color BorderColor { get; set; }

Gets or sets the border thickness of the control.

C#
public Thickness BorderThickness { get; set; }

ControlTemplate

ControlTemplate

Gets or sets the control template of this view.

C#
public ControlTemplate ControlTemplate { get; set; }

CornerRadius

CornerRadius

Gets or sets the corner radius of the control.

C#
public CornerRadius CornerRadius { get; set; }

FontAttributes

FontAttributes

Gets or sets the font attributes of the displayed text. For more information see the FontAttributes type.

C#
public FontAttributes FontAttributes { get; set; }

Gets or sets the font family of the displayed text.

C#
public string FontFamily { get; set; }

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

C#
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

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

C#
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.

C#
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.

C#
public bool IsMouseOver { get; }

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

C#
public bool IsPressed { get; }

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

C#
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.

C#
public double MinimumHeightRequest { get; set; }

Padding

Thickness

Gets or sets the padding of the control.

C#
public Thickness Padding { get; set; }

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.

C#
public Color SelectedTextColor { get; set; }

Gets or sets how this item sizes itself within the RadSegmentedControlContent layout. The default value is Star.

C#
public SegmentedControlSizeMode SizeMode { get; set; }

Style

Style

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

C#
public Style Style { get; set; }

Gets or sets the color of the displayed text.

C#
public Color TextColor { get; set; }

TextDecorations

TextDecorations

Gets or sets the text decorations of the displayed text. For more information see the TextDecorations type.

C#
public TextDecorations TextDecorations { get; set; }

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

C#
public TextAlignment VerticalTextAlignment { get; set; }

Methods

C#
protected override void ChangeVisualState()
C#
protected override void OnApplyTemplate()

Called when the handler changes.

C#
protected override void OnHandlerChanged()

Overrides: RadContentView.OnHandlerChanged()

C#
protected override void OnHandlerChanging(HandlerChangingEventArgs args)
Parameters:argsHandlerChangingEventArgs
C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring