Style Settings
- 2 minutes to read
The NavBar control appearance can be customized in several ways. One is assigning styles to different NavBar elements. Styles can be assigned to elements by assigning a TdxNavBarStyle class instance to the required style property. All NavBar styles have the same settings, which give a user control of the NavBar appearance. Some of these settings affect each other and some are independent. NavBar style properties and dependencies between them are listed below:
Property | Description | Affects/Affected by |
---|---|---|
AlphaBlending | Specifies the transparency for the starting component of the gradient fill (BackColor property value). | Image property settings. If alpha blending is set to 255, then the picture, specified by the Image property, is not visible. |
AlphaBlending2 | Specifies the transparency for the ending component of the gradient fill (BackColor2 property value). | Image property settings. If alpha blending is set to 255, then the picture, specified by the Image property, is not visible. |
BackColor | Specifies the starting color of the gradient fill. | |
BackColor2 | Specifies the ending color of the gradient fill. | If this property value is equal to the BackColor property value, then the element is painted with solid fill (with BackColor settings) |
GradientMode | Specifies the direction of the gradient fill. | Is not in effect if the BackColor and BackColor2 properties have the same values. |
Font | Contains the font settings. | |
Image | Specifies the image to display within the element. | |
HAlignment | Specifies the horizontal alignment for the element text. | |
VAlignment | Specifies the vertical alignment for the element text. |
If you want to get full control of the NavBar control appearance, use custom draw events. See Custom Draw Basics, Custom Painting of Static Elements, Custom Painting of Active Elements and Hints Custom Painting topics for details.