ArrowPrimitive
Represents a primitive element that renders directional arrows.
ArrowPrimitive provides rendering capabilities for arrows pointing in various directions (up, down, left, right). It's commonly used in dropdown buttons, scroll bars, menus, and other UI elements that require directional indicators.
The primitive extends BasePrimitive and supports various arrow styles, sizes, and colors. It automatically handles arrow direction and scales appropriately based on the available space.
The class defines minimum sizes for horizontal and vertical arrows to ensure proper visual representation even in constrained layouts.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class ArrowPrimitive : BasePrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveArrowPrimitive...
Implements:
Inherited Members
Constructors
Initializes a downward-pointing arrow with the minimum size for its direction.
public ArrowPrimitive()
Initializes a new instance of the ArrowPrimitive class using the ArrowDirection enumeration. Possible directions are up, bottom, left, and right.
Fields
Identifies the Direction property for RadProperty-based access.
public static readonly RadProperty DirectionProperty
Gets the base size used for left- and right-pointing arrows before DPI scaling.
public static readonly Size MinHorizontalSize
Gets the base size used for up- and down-pointing arrows before DPI scaling.
public static readonly Size MinVerticalSize
Identifies the UseSmoothPaint property for RadProperty-based access.
public static readonly RadProperty UseSmoothPaintProperty
Properties
Gets or sets the arrow direction. The possible values are contained in the ArrowDirection enumeration: up, left, right, and bottom.
public ArrowDirection Direction { get; set; }
Gets or sets whether the arrow stretches to fill its available horizontal space. Stretching is disabled by default.
public override bool StretchHorizontally { get; set; }
Overrides:
Gets or sets whether the arrow stretches to fill its available vertical space. Stretching is disabled by default.
public override bool StretchVertically { get; set; }
Overrides:
Determines whether to paint the arrow using anti-aliasing. Default value is false.
public bool UseSmoothPaint { get; set; }
Methods
Sets the initial direction, minimum sizing, smoothing mode, and stretch behavior.
protected override void InitializeFields()
Overrides:
Measures the arrow using the minimum dimensions for its direction, scaled for DPI and expanded by padding.
Updates the arrow's size or minimum size when its auto-size mode or direction changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Information about the property change.
Overrides: