Class PlatformColorValues
Information about current system color values, including information about dark mode and accent colors.
public record PlatformColorValues : IEquatable<PlatformColorValues>
- Inheritance
-
PlatformColorValues
- Implements
- Inherited Members
Constructors
PlatformColorValues()
public PlatformColorValues()
PlatformColorValues(PlatformColorValues)
protected PlatformColorValues(PlatformColorValues original)
Parameters
original
PlatformColorValues
Properties
AccentColor1
Primary system accent color.
public Color AccentColor1 { get; init; }
Property Value
AccentColor2
Secondary system accent color. On some platforms can return the same value as AccentColor1.
public Color AccentColor2 { get; init; }
Property Value
AccentColor3
Tertiary system accent color. On some platforms can return the same value as AccentColor1.
public Color AccentColor3 { get; init; }
Property Value
ContrastPreference
System high contrast preference.
public ColorContrastPreference ContrastPreference { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
ThemeVariant
System theme variant or mode.
public PlatformThemeVariant ThemeVariant { get; init; }
Property Value
Methods
Equals(PlatformColorValues?)
public virtual bool Equals(PlatformColorValues? other)
Parameters
other
PlatformColorValues
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PlatformColorValues?, PlatformColorValues?)
public static bool operator ==(PlatformColorValues? left, PlatformColorValues? right)
Parameters
left
PlatformColorValuesright
PlatformColorValues
Returns
operator !=(PlatformColorValues?, PlatformColorValues?)
public static bool operator !=(PlatformColorValues? left, PlatformColorValues? right)
Parameters
left
PlatformColorValuesright
PlatformColorValues