Ticket Q218469
Visible to All Users

Skinned NavBar does not used Skin Controller

created 16 years ago

I was wondering if there was a way to have the NavBar use the skin set in the SkinController? The problem that I am running into is that i do not see a way to change the skin in code so if our users switch skins the NavBar remains with the default skin and looks bad.

Comments (1)
DevExpress Support Team 16 years ago

    Hello Matthew.
    Thank you for your message.
    First of all, make sure that you are using a ViewStyle that allows you to define the dxNavBar's skin - SkinExplorerBarView or SkinNavigationPaneView.
    After that, you should use one of the following methods:

    1. Do not define the dxNavBar's ViewStyle->SkinName property value manually. In this case, skins from the dxSkinController will be applied to the dxNavBar.
    2. Change its style by accessing its ViewStyle->SkinName property as follows:
    Code
    ((TdxNavBarSkinNavPanePainter*) dxNavBar->ViewStyle)->SkinName = "Caramel";

    After applying skins using this approach, you will be unable to change the dxNavBar's skin using the dxSkinController, because the dxNavBar will use its own local skin.
    Attached is an example that shows how to perform this task using both these approaches.
    1st approach - check some cxRadioGroup's item;
    2nd approach - press the button in the bottom of the form.
    Hopefully, it will help you achieve the required functionality.
    Best regards,
    Ingvar.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.