locked
Navbar commands highlighted

    Question

  • I have set up a navbar and now looking to style it.  I would like to have the navbar commands highlighted when navigating to corresponding page. Can I use the onbeforenavigate event for this, or is there something else already available in winjs?
    Saturday, June 28, 2014 6:23 PM

Answers

  • Hi hxnwx,

    Well, of course you can, you can definitely get the DOM element that hosts the NavBarCommand by element property, and apply the new CSS to the element should be fine.

    --James

    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by hxnwx Monday, July 7, 2014 9:39 PM
    Monday, June 30, 2014 7:49 AM
    Moderator

All replies

  • Hi hxnwx,

    Well, of course you can, you can definitely get the DOM element that hosts the NavBarCommand by element property, and apply the new CSS to the element should be fine.

    --James

    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by hxnwx Monday, July 7, 2014 9:39 PM
    Monday, June 30, 2014 7:49 AM
    Moderator
  • I got this to work.  Perfect.  Thanks Jamles.

    Monday, July 7, 2014 9:38 PM