ClassSegment
Represents a item in a SegmentedItemsControl.
Definition
Namespace:Telerik.UI.Xaml.Controls.Input
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class Segment : ButtonBase
Inheritance: objectSegment
Constructors
Segment()
Initializes a new instance of the Segment class.
Declaration
public Segment()
Segment(bool)
Initializes a new instance of the Segment class.
Declaration
protected Segment(bool isAutoGenerated)
Parameters
isAutoGenerated
Fields
DisabledForegroundProperty
Identifies the DisabledForeground dependency property.
Declaration
public static readonly DependencyProperty DisabledForegroundProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
SelectedBackgroundProperty
Identifies the SelectedBackground dependency property.
Declaration
public static readonly DependencyProperty SelectedBackgroundProperty
Field Value
DependencyProperty
SelectedForegroundProperty
Identifies the SelectedForeground dependency property.
Declaration
public static readonly DependencyProperty SelectedForegroundProperty
Field Value
DependencyProperty
Properties
DisabledForeground
Gets or sets the foreground of the SegmentedCustomEditor when it gets disabled.
Declaration
public Brush DisabledForeground { get; set; }
Property Value
Brush
IsSelected
Gets or sets a value indicating whether the segment is selected.
LayoutSlot
Gets or sets the layout slot where the element has been arranged.
Declaration
public Rect LayoutSlot { get; set; }
Property Value
Rect
SelectedBackground
Gets or sets the background of the SegmentedCustomEditor when it gets selected.
Declaration
public Brush SelectedBackground { get; set; }
Property Value
Brush
SelectedForeground
Gets or sets the foreground of the SegmentedCustomEditor when it gets selected.
Declaration
public Brush SelectedForeground { get; set; }
Property Value
Brush
VisualState
Gets the name of the current VisualState of the control.
Declaration
public SegmentVisualState VisualState { get; }
Property Value
Methods
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
OnGotFocus(RoutedEventArgs)
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
OnKeyDown(KeyRoutedEventArgs)
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
e
KeyRoutedEventArgs
OnKeyUp(KeyRoutedEventArgs)
Declaration
protected override void OnKeyUp(KeyRoutedEventArgs e)
Parameters
e
KeyRoutedEventArgs
OnLostFocus(RoutedEventArgs)
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
e
RoutedEventArgs
OnPointerCanceled(PointerRoutedEventArgs)
Declaration
protected override void OnPointerCanceled(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerCaptureLost(PointerRoutedEventArgs)
Declaration
protected override void OnPointerCaptureLost(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerEntered(PointerRoutedEventArgs)
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerExited(PointerRoutedEventArgs)
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerPressed(PointerRoutedEventArgs)
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
OnPointerReleased(PointerRoutedEventArgs)
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)
Parameters
e
PointerRoutedEventArgs
Events
AnimationContextChanged
Occurs when the LayoutSlot or the VisualStateName of the segment has changed.
Declaration
public event EventHandler AnimationContextChanged
Event Value