ClassSegmentedItemsControl
Represents the list control that holds the Segment.
Definition
Namespace:Telerik.UI.Xaml.Controls.Input
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class SegmentedItemsControl : ItemsControl
Inheritance: objectSegmentedItemsControl
Constructors
SegmentedItemsControl()
Initializes a new instance of the SegmentedItemsControl class.
Declaration
public SegmentedItemsControl()
Fields
CornerRadiusProperty
Identifies the CornerRadius dependency property.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
DependencyProperty
SegmentWidthModeProperty
Identifies the SegmentWidthMode dependency property.
Declaration
public static readonly DependencyProperty SegmentWidthModeProperty
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
CornerRadius
Gets or sets the corner radius of the control outer border.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
CornerRadius
DecorationLayer
Gets the layer where the separators are arranged.
Declaration
protected Canvas DecorationLayer { get; }
Property Value
Canvas
SegmentWidthMode
Gets or sets the width mode of the segments.
Declaration
public SegmentWidthMode SegmentWidthMode { get; set; }
Property Value
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
ArrangeSeparators(List<Point>, Size)
Arranges the separators in the DecorationLayer.
Declaration
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
protected override void ClearContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
item
GetContainerForItemOverride()
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
MeasureOverride(Size)
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
Returns
Size
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
PrepareContainerForItemOverride(DependencyObject, object)
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
item
SynchronizeSeparators()
Synchronizes the separators count in the DecorationLayer with the items count.
Declaration
protected virtual void SynchronizeSeparators()