Skip to main content

AccentColorConverter Class

Creates an accent color for a given base color value and step parameter.

Definition

Namespace: Avalonia.Controls.Primitives.Converters
Assembly: Avalonia.Controls.ColorPicker (in Avalonia.Controls.ColorPicker.dll)

public class AccentColorConverter : IValueConverter
View Source
InheritanceObject → AccentColorConverter
ImplementsIValueConverter

Remarks

This is a highly-specialized converter for the color picker.

Constructors

AccentColorConverter()Initializes a new instance of the AccentColorConverter class

Methods

Convert(Object, Type, Object, CultureInfo)Converts a value.
ConvertBack(Object, Type, Object, CultureInfo)Converts a value.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAccent(HsvColor, Int32)This does not account for perceptual differences and also does not match with system accent color calculation.
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

Fields

ValueDeltaThe amount to change the Value component for each accent color step.

See Also

Reference

Avalonia.Controls.Primitives.Converters Namespace