locked
How to disable WinJS.UI.NavBarCommand?

    Question

  • The AppBarCommand have a "disabled" property, WinJS.UI.NavBarCommand do not.
    • Edited by pkursawe Wednesday, July 09, 2014 11:09 PM
    Wednesday, July 09, 2014 11:08 PM

Answers

  • Hi pkursawe,

    Let's say NavBarCommand is used to navigate to another page while AppBarCommand can be used to execute some command.

    Disable AppBarCommand can deliver a information that the app has such function but currently it is not available. However if you do not want the user navigate to a specific page, why not directly hide the NavBarCommand or do thing with the NavBarCommand?

    This also could be a Customer Wish and I will submit to seniors for you.

    --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.

    Monday, July 14, 2014 5:20 AM
    Moderator