ClassRadSegmentedControl
A segmented control is a horizontal control made of multiple segments, each segment functioning as a toggle button.
Definition
Namespace:Telerik.UI.Xaml.Controls.Input
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadSegmentedControl : RadControl
Inheritance: objectRadControlRadSegmentedControl
Inherited Members
Constructors
RadSegmentedControl()
Initializes a new instance of the RadSegmentedControl class.
Declaration
public RadSegmentedControl()
Fields
DisplayMemberPathProperty
Identifies the DisplayMemberPath dependency property.
Declaration
public static readonly DependencyProperty DisplayMemberPathProperty
Field Value
DependencyProperty
ItemCommandProperty
Identifies the ItemCommand dependency property.
Declaration
public static readonly DependencyProperty ItemCommandProperty
Field Value
DependencyProperty
ItemContainerStyleProperty
Identifies the ItemContainerStyle dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleProperty
Field Value
DependencyProperty
ItemContainerStyleSelectorProperty
Identifies the ItemContainerStyleSelector dependency property.
Declaration
public static readonly DependencyProperty ItemContainerStyleSelectorProperty
Field Value
DependencyProperty
ItemTemplateProperty
Identifies the ItemTemplate dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateProperty
Field Value
DependencyProperty
ItemTemplateSelectorProperty
Identifies the ItemTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ItemTemplateSelectorProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
SegmentWidthModeProperty
Identifies the SegmentWidthMode dependency property.
Declaration
public static readonly DependencyProperty SegmentWidthModeProperty
Field Value
DependencyProperty
SelectedIndexProperty
Identifies the SelectedIndex property.
Declaration
public static readonly DependencyProperty SelectedIndexProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SelectedValuePathProperty
Identifies the SelectedValuePath property.
Declaration
public static readonly DependencyProperty SelectedValuePathProperty
Field Value
DependencyProperty
SelectedValueProperty
Identifies the SelectedValue property.
Declaration
public static readonly DependencyProperty SelectedValueProperty
Field Value
DependencyProperty
SeparatorBrushProperty
Identifies the SeparatorBrush dependency property.
Declaration
public static readonly DependencyProperty SeparatorBrushProperty
Field Value
DependencyProperty
SeparatorWidthProperty
Identifies the SeparatorWidth dependency property.
Declaration
public static readonly DependencyProperty SeparatorWidthProperty
Field Value
DependencyProperty
Properties
AnimationLayer
Gets a base layer where the end-user can add and animate custom elements utilizing the SegmentAnimationContextChanged event.
Declaration
public Canvas AnimationLayer { get; }
Property Value
Canvas
DisplayMemberPath
Gets or sets a path to a value on the source object to serve as the visual representation of the object.
ItemCommand
Gets or sets the command that is executed when an auto-generated segment is pressed.
ItemContainerStyle
Gets or sets the Style that is applied to the container element generated for each item.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Style
ItemContainerStyleSelector
Gets or sets custom style-selection logic for a style that can be applied to each generated container element.
Declaration
public StyleSelector ItemContainerStyleSelector { get; set; }
Property Value
StyleSelector
ItemTemplate
Gets or sets the DataTemplate used to display each item.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
DataTemplate
ItemTemplateSelector
Gets or sets the custom logic for choosing a template used to display each item.
Declaration
public DataTemplateSelector ItemTemplateSelector { get; set; }
Property Value
DataTemplateSelector
Items
Gets the collection used to generate the content of the RadSegmentedControl.
ItemsSource
Gets or sets a collection used to generate the content of the RadSegmentedControl.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
SegmentWidthMode
Gets or sets the width mode of the segments.
Declaration
public SegmentWidthMode SegmentWidthMode { get; set; }
Property Value
SelectedIndex
Gets or sets the zero-based index of the currently selected item.
SelectedItem
Gets or sets the first item in the current selection or returns null if the selection is empty.
SelectedValue
Gets or sets the value of the SelectedItem, obtained by using SelectedValuePath.
SelectedValuePath
Gets or sets the path that is used to get the SelectedValue from the SelectedItem.
SeparatorBrush
Gets or sets the brush that defines the background of the separators between the segments.
Declaration
public Brush SeparatorBrush { get; set; }
Property Value
Brush
SeparatorWidth
Gets or sets the width of the separators between the segments.
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
IsSegmentEnabled(int)
Returns bool value that indicates if the Segment is enabled.
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnIsEnabledChanged(bool, bool)
Called when the IsEnabled property has changed.
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
SetSegmentEnabled(int, bool)
Set the Enable state of the Segment.
UnapplyTemplateCore()
Removes the current control template. Occurs when a template has already been applied and a new one is applied.
Declaration
protected override void UnapplyTemplateCore()
Overrides
Events
SegmentAnimationContextChanged
Occurs when the layout slot or the visual state of a child Segment has changed.
Declaration
public event EventHandler<SegmentAnimationContextEventArgs> SegmentAnimationContextChanged
Event Value
SelectionChanged
Occurs when the selection changes.
Declaration
public event SelectionChangedEventHandler SelectionChanged
Event Value
SelectionChangedEventHandler