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.

Programmatically Position Holographic UWP XML Window

edited October 2017 in Questions And Answers

I’ve developed a C#/XAML UWP app used to display multiple 2D windows (videos/pdfs/interactive XAML windows with buttons) and everything is working great. However, one of the features I want to implement is the capability to arrange the holographic windows in a line, or some other preset configuration.

It seems that the XAML windows have no awareness of the Holographic shell in which they are contained. The user can drag and pin, but I am stuck on finding a way to set the window’s location programmatically. How can I grab and manipulate the 3D positional data from the parent holographic frame?

Answers

  • james_ashleyjames_ashley ✭✭✭✭

    @cjspringer3 ,

    I'm pretty sure this is a part of the OS shell and not something you can manipulate yourself -- much like the tile system in Windows 10 is closed off.

    James

    James Ashley
    VS 2017 v5.3.3, Unity 2017.3.0f3, MRTK 2017.1.2, W10 17063
    Microsoft MVP, Freelance HoloLens/MR Developer
    www.imaginativeuniversal.com

  • @james_ashley thanks for your response. I am trying to find a way to use Unity to create some type of wrapper for my 2D application. No luck yet...

  • james_ashleyjames_ashley ✭✭✭✭

    @cjspringer3,

    Yeah. That would be very cool. You might be able to get close by switching between 2d and 3d, as in this tutorial by Cameron Jensen:

    James Ashley
    VS 2017 v5.3.3, Unity 2017.3.0f3, MRTK 2017.1.2, W10 17063
    Microsoft MVP, Freelance HoloLens/MR Developer
    www.imaginativeuniversal.com

  • Hi @cjspringer3,

    Did you find a solution to your problem ?

    I'm really interested in this issue, having a similar problem.
    I would like to get/set a XAML app location programmatically.

    Thanks in advance.

Sign In or Register to comment.