Class
Segment

Represents a item in a SegmentedItemsControl.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class Segment : ButtonBase

Inheritance: objectSegment

Constructors

Segment()

Initializes a new instance of the Segment class.

Declaration

cs-api-definition
public Segment()

Segment(bool)

Initializes a new instance of the Segment class.

Declaration

cs-api-definition
protected Segment(bool isAutoGenerated)

Parameters

isAutoGenerated

bool

Fields

DisabledForegroundProperty

Identifies the DisabledForeground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisabledForegroundProperty

Field Value

DependencyProperty

IsSelectedProperty

Identifies the IsSelected dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedBackgroundProperty

Field Value

DependencyProperty

SelectedForegroundProperty

Identifies the SelectedForeground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedForegroundProperty

Field Value

DependencyProperty

Properties

DisabledForeground

Gets or sets the foreground of the SegmentedCustomEditor when it gets disabled.

Declaration

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

Property Value

Brush

IsSelected

Gets or sets a value indicating whether the segment is selected.

Declaration

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

Property Value

bool

LayoutSlot

Gets or sets the layout slot where the element has been arranged.

Declaration

cs-api-definition
public Rect LayoutSlot { get; set; }

Property Value

Rect

SelectedBackground

Gets or sets the background of the SegmentedCustomEditor when it gets selected.

Declaration

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

Property Value

Brush

SelectedForeground

Gets or sets the foreground of the SegmentedCustomEditor when it gets selected.

Declaration

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

Property Value

Brush

VisualState

Gets the name of the current VisualState of the control.

Declaration

cs-api-definition
public SegmentVisualState VisualState { get; }

Property Value

SegmentVisualState

Methods

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnCreateAutomationPeer()

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

OnGotFocus(RoutedEventArgs)

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

OnKeyDown(KeyRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnKeyDown(KeyRoutedEventArgs e)

Parameters

e

KeyRoutedEventArgs

OnKeyUp(KeyRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnKeyUp(KeyRoutedEventArgs e)

Parameters

e

KeyRoutedEventArgs

OnLostFocus(RoutedEventArgs)

Declaration

cs-api-definition
protected override void OnLostFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

OnPointerCanceled(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerCanceled(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerCaptureLost(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerCaptureLost(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerEntered(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerEntered(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerExited(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerExited(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerPressed(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerPressed(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

OnPointerReleased(PointerRoutedEventArgs)

Declaration

cs-api-definition
protected override void OnPointerReleased(PointerRoutedEventArgs e)

Parameters

e

PointerRoutedEventArgs

Events

AnimationContextChanged

Occurs when the LayoutSlot or the VisualStateName of the segment has changed.

Declaration

cs-api-definition
public event EventHandler AnimationContextChanged

Event Value

EventHandler

Selected

Occurs when the Segment has been selected.

Declaration

cs-api-definition
public event EventHandler Selected

Event Value

EventHandler