当您将SimpleButton.Appearance.BackColor
属性设置为DX Skin
颜色(@Danger
,@Question
,@Success
,@Primary
或{{1} },如图所示):
在运行时使用适当的颜色评估@Info
属性(如果肤色太暗,则使用Color.White;如果肤色太亮,则使用Color.Black ):
黑暗SimpleButton.Appearance.ForeColor
:
浅色@Success
:
如何获得在运行时评估的@Success
?
我尝试获取ForeColor
,SimpleButton.ForeColor
和SimpleButton.Appearance.ForeColor
(我正在尝试在SimpleButton.Appearance.GetForeColor(e.GraphicsCache)
事件中获取此颜色),但始终为CustomDraw