Table of Contents

Method AssignDefaultColors

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

AssignDefaultColors()

Assigns default background and foreground color values based on the current application platform and appearance settings.

protected virtual void AssignDefaultColors()

Remarks

On MAUI platforms, this method sets the background and foreground colors according to the system's light or dark appearance. On other platforms, it configures the control to inherit colors from its parent. Override this method to customize default color assignment behavior for derived controls.