Gets or sets a value which determines whether the control will be rendered using the material secondary color instead of the default primary color. Material-only property.
object.UseSecondaryColor = [boolean]
Where object is an object expression that evaluates to one of the objects in the Applies To list, and boolean is a boolean expression that evaluates to either True or False, as described in Settings below.
Newlook Smartclient only.
Introduced in version 11.1.
Not supported if Classic skin is enabled.
This property is useful if you wish to give focus to a specific control, for instance a frequently used command button, on your form. The advantage of using the UseSecondaryColor property over the BackColor property, is that it provides a consistent accent color which is simple to change throughout your application, should you wish to in the future.
![]() |
Use of the UseSecondaryColor property to give focus to the 'Check stock' button. |
The settings for boolean are:
Setting |
Description |
True |
Any material color in the control will be rendered using the secondary color specified in the material skin settings. |
False |
(Default) Any material color in the control will be rendered using the primary secondary color specified in the material skin settings. |
Color Settings | Material skin | BackColor property
© 2004-2021 looksoftware. All rights reserved.