Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

How to customize the app bar of a 2D app?

I would like to know how to change the app bar's title and remove the default buttons (scroll tool, drag tool and zoom tool) from the app bar. This links talks about it, but still not able to figure out how to access the app bar element and customize it. https://developer.microsoft.com/en-us/windows/holographic/updating_your_existing_universal_app_for_hololens

Tagged:

Answers

  • @cincoutprabu the link you reference looks pretty clear:

    the app bar is always visible. The app bar has two points of app-specific personalization:

    Title: displays the displayname of the Tile associated with the app instance

    Back Button: raises the BackRequested event when pressed. Back Button visibility is controlled by SystemNavigationManager.AppViewBackButtonVisibility.

    Basically it is saying that the App Bar's title is the "displayname" of the Tile associated with the app instance.

    Next it says that the only other customization besides the Title that you can make is that you can control the visibility through the AppViewBackButtonVisibility property.

    You can not remove the scroll tool, drag tool and zoom tool from the app bar and you can not "access the app bar elements to customize it". Those two personalizations are handled automagically by the shell based on the values of the related properties in your UWP app and the rest of the app bar is also handled by the shell, it is not a component that your app has access to in the current implementation.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

Sign In or Register to comment.