Skip to content

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

NameSummary
.ctor

Properties

NameSummary
ShowAlphaGets or sets a value indicating whether the alpha channel should be included.

Fields

NameSummary
static ShowAlphaPropertyDependencyProperty to control whether alpha should be included.

Methods

NameSummary
static ConvertNoAlphaConvert a Color to a hex string without alpha.
static ConvertBackNoAlphaConvert a hex string (without alpha) to a Color.
RaiseShowAlphaChangeRaise the ShowAlpha changed event.
Convert
ConvertBack

Events

NameSummary
OnShowAlphaChangeRaised when ShowAlpha changes.
Inherited members