Property AppearanceIsDark
AppearanceIsDark
Return true if the current system there is explicitly recognized as being a dark theme or if the default window background is dark.
public static bool AppearanceIsDark { get; }
Property Value
Remarks
This method should be used to check whether custom colours more appropriate for the default (light) or dark appearance should be used.