The appearance of the ToolStripEx can be customized by the following steps.
To create custom Color Table
By creating the custom Color Table, you can assign the required color to the Custom Render class. Here, CustomOffice12Colors class is initialized for this purpose.
To apply ColorTable to the Custom Renderer class
Create a custom renderer class with the required ColorTable value applied to it. Here, the Office12ToolStripRenderer class is initialized for this purpose.
To assign the Custom render class to the ToolStripEx
The Renderer property in the ToolStripEx helps to apply the custom renderer.
The following code example demonstrates the same.
Note: The appearance of the ToolStripEx can be changed by using the “VisualStyle” property.
Figure 1: Default Color scheme of the ToolStripEx
Figure 2: ToolStripEx is specified with the Metro Style
Figure 3: Custom color is specified for ToolStripEx
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.