skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • Resources Hub
    • .NET MAUI Tutorials and Learning
    • First Steps
    • Submit a Ticket
    • FAQs

    Docs & Resources

    • Docs
    • Demos
    • Migrate to .NET MAUI
    • Forums
    • Videos
    • Blogs

    Productivity and Design Tools

    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadSegmentedControl

Displays a list of horizontally aligned, mutually exclusive options, which can be selected by the user. Each option is a button that can display text or an image.

Inheritance
System.Object
RadView
RadSegmentedControl
Inherited Members
RadView.OnNativeControlLoaded()
RadView.OnNativeControlUnloaded()
RadView.IsDefaultValue(String)
RadView.OnPropertyChanged(String)
RadView.IsOperational
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll

Syntax

public class RadSegmentedControl : RadView, IRadSegmentedControl, IView, IElement, ITransform

Constructors

RadSegmentedControl()

Initializes a new instance of the RadSegmentedControl class.

Declaration
public RadSegmentedControl()

Fields

DisabledSegmentTextColorProperty

Identifies the DisabledSegmentTextColor property.

Declaration
public static readonly BindableProperty DisabledSegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

ItemsSourceProperty

Identifies the ItemsSource property.

Declaration
public static readonly BindableProperty ItemsSourceProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SegmentBackgroundColorProperty

Identifies the SegmentBackgroundColor property.

Declaration
public static readonly BindableProperty SegmentBackgroundColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SegmentTextColorProperty

Identifies the SegmentTextColor property.

Declaration
public static readonly BindableProperty SegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SelectedIndexProperty

Identifies the SelectedIndex property.

Declaration
public static readonly BindableProperty SelectedIndexProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SelectedItemProperty

Identifies the SelectedItem property.

Declaration
public static readonly BindableProperty SelectedItemProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SelectedSegmentBackgroundColorProperty

Identifies the SelectedSegmentBackgroundColor property.

Declaration
public static readonly BindableProperty SelectedSegmentBackgroundColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

SelectedSegmentTextColorProperty

Identifies the SelectedSegmentTextColor property.

Declaration
public static readonly BindableProperty SelectedSegmentTextColorProperty
Field Value
Microsoft.Maui.Controls.BindableProperty

Properties

DisabledSegmentTextColor

Gets or sets the text color of the disabled segment.

Declaration
public Color DisabledSegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

Implements
IRadSegmentedControl.DisabledSegmentTextColor

ItemsSource

Gets or sets the collection of items of the control.

Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
System.Collections.IEnumerable

Implements
IRadSegmentedControl.ItemsSource

SegmentBackgroundColor

Gets or sets the background color of the segment.

Declaration
public Color SegmentBackgroundColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

Implements
IRadSegmentedControl.SegmentBackgroundColor

SegmentTextColor

Gets or sets the text color of the segment.

Declaration
public Color SegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

Implements
IRadSegmentedControl.SegmentTextColor

SelectedIndex

Gets or sets the index of the item to be selected.

Declaration
public int SelectedIndex { get; set; }
Property Value
System.Int32

Implements
IRadSegmentedControl.SelectedIndex

SelectedItem

Gets or sets the currently selected item.

Declaration
public object SelectedItem { get; set; }
Property Value
System.Object

SelectedSegmentBackgroundColor

Gets or sets the background color of the selected segment.

Declaration
public Color SelectedSegmentBackgroundColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

Implements
IRadSegmentedControl.SelectedSegmentBackgroundColor

SelectedSegmentTextColor

Gets or sets the text color of the selected segment.

Declaration
public Color SelectedSegmentTextColor { get; set; }
Property Value
Microsoft.Maui.Graphics.Color

Implements
IRadSegmentedControl.SelectedSegmentTextColor

Methods

IsSegmentEnabled(Int32)

Determines if the specified segment is enabled.

Declaration
public bool IsSegmentEnabled(int index)
Parameters
System.Int32 index

The index of the segment.

Returns
System.Boolean

The state of the segment: True - enabled, False - disabled.

OnHandlerChanged()

Declaration
protected override void OnHandlerChanged()
Overrides
RadView.OnHandlerChanged()

SetSegmentEnabled(Int32, Boolean)

Sets the enabled state of the specified segment.

Declaration
public void SetSegmentEnabled(int index, bool isEnabled)
Parameters
System.Int32 index

The index of the segment to enable or disable.

System.Boolean isEnabled

The new state of the segment: True - enabled, False - disabled.

Events

SelectionChanged

Raised when the current selection has changed.

Declaration
public event EventHandler<ValueChangedEventArgs<int>> SelectionChanged
Event Type
System.EventHandler<ValueChangedEventArgs<System.Int32>>

Extension Methods

AndroidTypeConversionExtensions.ToJavaObject(Object)
Sample Applications
  • Controls Samples App
  • Crypto Tracker App
Support Resources
  • .NET MAUI SDKBrowser App
Community
  • Forums
  • Blogs
  • Feedback Portal
  • YouTube Channel

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.