Class
SegmentedItemsControl

Represents the list control that holds the Segment.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class SegmentedItemsControl : ItemsControl

Inheritance: objectSegmentedItemsControl

Constructors

SegmentedItemsControl()

Initializes a new instance of the SegmentedItemsControl class.

Declaration

cs-api-definition
public SegmentedItemsControl()

Fields

CornerRadiusProperty

Identifies the CornerRadius dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty CornerRadiusProperty

Field Value

DependencyProperty

SegmentWidthModeProperty

Identifies the SegmentWidthMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SegmentWidthModeProperty

Field Value

DependencyProperty

SeparatorBrushProperty

Identifies the SeparatorBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SeparatorBrushProperty

Field Value

DependencyProperty

SeparatorWidthProperty

Identifies the SeparatorWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SeparatorWidthProperty

Field Value

DependencyProperty

Properties

CornerRadius

Gets or sets the corner radius of the control outer border.

Declaration

cs-api-definition
public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

DecorationLayer

Gets the layer where the separators are arranged.

Declaration

cs-api-definition
protected Canvas DecorationLayer { get; }

Property Value

Canvas

SegmentWidthMode

Gets or sets the width mode of the segments.

Declaration

cs-api-definition
public SegmentWidthMode SegmentWidthMode { get; set; }

Property Value

SegmentWidthMode

SeparatorBrush

Gets or sets the brush that defines the background of the separators between the segments.

Declaration

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

Property Value

Brush

SeparatorWidth

Gets or sets the width of the separators between the segments.

Declaration

cs-api-definition
public double SeparatorWidth { get; set; }

Property Value

double

Methods

ArrangeSeparators(List<Point>, Size)

Arranges the separators in the DecorationLayer.

Declaration

cs-api-definition
public virtual void ArrangeSeparators(List<Point> decoratorsContext, Size finalContainerSize)

Parameters

decoratorsContext

List<Point>

The canvas position of each separator.

finalContainerSize

Size

The final size of the container in which separators are arranged.

ClearContainerForItemOverride(DependencyObject, object)

Declaration

cs-api-definition
protected override void ClearContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

item

object

GetContainerForItemOverride()

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

IsItemItsOwnContainerOverride(object)

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

Returns

bool

MeasureOverride(Size)

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

Returns

Size

OnApplyTemplate()

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnItemsChanged(object)

Declaration

cs-api-definition
protected override void OnItemsChanged(object e)

Parameters

e

object

PrepareContainerForItemOverride(DependencyObject, object)

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

item

object

SynchronizeSeparators()

Synchronizes the separators count in the DecorationLayer with the items count.

Declaration

cs-api-definition
protected virtual void SynchronizeSeparators()