ColorDisplay class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.ColorDisplay
Modifiers: public
Summary¶
A control that displays a color preview.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class ColorDisplay
class TemplatedControl
TemplatedControl <|-- ColorDisplay
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Color | Gets or sets the primary color to display. |
| SecondColor | Gets or sets the secondary color to display. |
| ShowSecondColor | Gets or sets a value indicating whether to show the second color. |
| CornerRadius | Gets or sets the corner radius. |
Fields¶
| Name | Summary |
|---|---|
| static ColorProperty | Property for [Color](# |
| static SecondColorProperty | Property for [SecondColor](# |
| static ShowSecondColorProperty | Property for [ShowSecondColor](# |
| static CornerRadiusProperty | Property for [CornerRadius](# |