Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Primitives.ColorSliderAvalonia.Controls.PrimitivesAvalonia.Controls.ColorPickersrc/Avalonia.Controls.ColorPicker/ColorSlider/ColorSlider.Properties.csSlidercontrolpublic static readonly StyledProperty<Color> ColorProperty = AvaloniaProperty.Register<ColorSlider, Color>( nameof(Color), Colors.White, defaultBindingMode: BindingMode.TwoWay);public static readonly StyledProperty<ColorComponent> ColorComponentProperty = AvaloniaProperty.Register<ColorSlider, ColorComponent>( nameof(ColorComponent), ColorComponent.Component1);public static readonly StyledProperty<ColorModel> ColorModelProperty = AvaloniaProperty.Register<ColorSlider, ColorModel>( nameof(ColorModel), ColorModel.Rgba);public static readonly StyledProperty<HsvColor> HsvColorProperty = AvaloniaProperty.Register<ColorSlider, HsvColor>( nameof(HsvColor), Colors.White.ToHsv(), defaultBindingMode: BindingMode.TwoWay);public static readonly StyledProperty<bool> IsAlphaVisibleProperty = AvaloniaProperty.Register<ColorSlider, bool>( nameof(IsAlphaVisible), false);public static readonly StyledProperty<bool> IsPerceptiveProperty = AvaloniaProperty.Register<ColorSlider, bool>( nameof(IsPerceptive), true);public static readonly StyledProperty<bool> IsRoundingEnabledProperty = AvaloniaProperty.Register<ColorSlider, bool>( nameof(IsRoundingEnabled), false);public Color Color {public ColorComponent ColorComponent {public ColorModel ColorModel {public HsvColor HsvColor {public bool IsAlphaVisible {public bool IsPerceptive {public bool IsRoundingEnabled {public event EventHandler<ColorChangedEventArgs>? ColorChanged;public ColorSlider() : base() {<ColorSlider x:Name="SampleColorSlider" />
using Avalonia.Controls.Primitives;
var control = new ColorSlider();