Overview

BeepChevronButton draws an arrow/chevron button with configurable direction and size. Supports a checkable toggle state, arrow direction cycling on click, ripple animation, and three visual variants (Default, Subtle, Outlined).

Namespace: TheTechIdea.Beep.Winform.Controls
Inheritance: BaseControl → BeepChevronButton

Properties

PropertyTypeDefaultDescription
DirectionChevronDirectionRightArrow direction: Left, Right, Up, Down.
VariantChevronButtonVariantDefaultVisual style: Default, Subtle, Outlined.
ButtonSizeChevronButtonSizeNormalSize: Small, Normal, Large.
IsCheckedboolfalseToggle state (persisted).
IsCheckablebooltrueEnables checked/unchecked toggle behavior.
AllowArrowDirectionCyclebooltrueClicking cycles the arrow direction.
ShowRipplebooltrueEnables click ripple animation.
ReducedMotionboolfalseDisables animations for accessibility.
ImagePathstring""Optional icon to display next to the chevron.

Variants

VariantDescription
DefaultFilled background chevron, standard appearance.
SubtleMinimal border-only, disappears when not focused.
OutlinedBorder outline with transparent fill.

Examples

Expand/Collapse Toggle

var chevron = new BeepChevronButton { Direction = ChevronDirection.Right, IsCheckable = true };
chevron.Click += (s, e) => {
    panel.Visible = chevron.IsChecked;
    chevron.Direction = chevron.IsChecked ? ChevronDirection.Down : ChevronDirection.Right;
};