Ticket T343748
Visible to All Users

TdxNavBar Property SkinName Does Not Exist

created 9 years ago

Hello,

At runtime I get the following error message on a form with a dxNavBar component where the ViewStyle.SkinName property is set in the form designer:

"Error reading dxNavBar.ViewStyle.SkinName: Property SkinName does not exist".

I found a couple of other tickets with a reference to this same issue, so I tried adding "dxSkinsdxNavBarPainter" to the "uses" clause, but that did not help.  Any ideas?

Thanks,

Mike

Comments (1)

    Also, I looked in the help system and found this line of example code…

    TdxNavBarSkinNavPanePainter(dxNavBar1.ViewStyle).SkinName := 'Caramel';

    I added that line to a test button click event, removed the SkinName property in the form designer, and ran the form.  When I click the test button to set the skin, I get an access violation.

    Answers approved by DevExpress Support

    created 9 years ago

    Hello Mike,

    It is unclear what NavBar Style View you are using. To apply a skin to a NavBar, you need to choose a corresponding style, such as LookAndFeelView, AccordionView, SkinExplorerBarView, or SkinNavigationPaneView. I recommend that you read about this in our help documentation (see the "TdxCustomNavBar.ViewStyle" and "TdxCustomNavBar.View" help topics).

    E.g., if you are using the SkinNavigationPaneView style, you can set the Skin using the following code:

    Delphi
    if dxNavBar1.ViewStyle is TdxNavBarSkinNavPanePainter then TdxNavBarSkinNavPanePainter(dxNavBar1.ViewStyle).SkinName := 'Valentine';

      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.