When you set a SimpleButton.Appearance.BackColor
property to a DX Skin
color (@Danger
, @Question
, @Success
, @Primary
or @Info
as shown in the image):
The SimpleButton.Appearance.ForeColor
property is evaluated at run-time with the appropriate color (if the skin color is too dark, Color.White would be used; if the skin color is too bright, Color.Black would be used):
Dark @Success
:
Light @Success
:
How do I get this ForeColor
that is evaluated in run-time?
I have tried getting SimpleButton.ForeColor
, SimpleButton.Appearance.ForeColor
and SimpleButton.Appearance.GetForeColor(e.GraphicsCache)
(I'm trying to get this color inside a CustomDraw
event) but it's always Color.Black