ColorToHexConverter class¶
Attributes: [ValueConversion]
Defined in
Namespace: CrissCross.WPF.UI.Converters
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Converters.ColorToHexConverter
Modifiers: public
Summary¶
Converts between a Color and its hexadecimal string representation, with optional alpha support.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class ColorToHexConverter
class DependencyObject
DependencyObject <|-- ColorToHexConverter
class IValueConverter {
<>
}
IValueConverter <|.. ColorToHexConverter
Inherits from: DependencyObject
Implements: IValueConverter
Constructors¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| ShowAlpha | Gets or sets a value indicating whether the alpha channel should be included. |
Fields¶
| Name | Summary |
|---|---|
| static ShowAlphaProperty | DependencyProperty to control whether alpha should be included. |
Methods¶
| Name | Summary |
|---|---|
| static ConvertNoAlpha | Convert a Color to a hex string without alpha. |
| static ConvertBackNoAlpha | Convert a hex string (without alpha) to a Color. |
| RaiseShowAlphaChange | Raise the ShowAlpha changed event. |
| Convert | |
| ConvertBack |
Events¶
| Name | Summary |
|---|---|
| OnShowAlphaChange | Raised when ShowAlpha changes. |