web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Orientation Property
Power Apps
Answered

Orientation Property

(0) ShareShare
ReportReport
Posted on by 12

Hey,

 

I want to build responsive Power Apps and checked out this documentation:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout

 

I am especially interested in Apps for phone and tablet and rearranging the controls when the orientation is changed like it is described at the end of the article (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout)

It seems there that the "orientation" property would change by rotating the phone and is used as a flag as to which layout should be used.

 

e.g.

UpperWidthIf(Parent.Orientation = Layout.Vertical, Parent.Width, Parent.Width / 2)
UpperHeightIf(Parent.Orientation = Layout.Vertical, Parent.Height / 2, Parent.Height)

 

But here is my problem: althoug the actual orientation of the app changes when I rotate my phone the value of the "orientation" property stays the same (i.e. the formulas above don't change their result).

 

Is there something I am missing? For now I just compare the current height and width:

 

If(App.Height > App.Width; Parent.Width; Parent.Width / 2)

 

But this seems inelegant and not as it is designed to function.

 

Does anybody have an idea?

Philipp

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ ORBISChristoph:

    Do you want to use Parent.Orientation as a sign to judge the orientation of the device?

    Could you tell me whether the app is a Phone layout or a Tablet layout?

    Case1: Tablet layout

    Im afraid it is not available, because in this case,Orientation is not a dynamic parameter, but a static value.

    The value of Orientation is set in Settings(File-Setting-Screen size + orientation-Orientation) ,even if the screen is rotated, its value will not change.

    Currently,using App.Height > App.Width seems to be the only solution.

    Case2: Phone layout

    In this case, the value of Parent.Orientation will change when the user rotate the device.

     

    Best Regards,

    Bof

  • Verified answer
    ORBISChristoph Profile Picture
    12 on at

    Excellent!

    That would already be enough. 😋

     

    But there is still something wrong with your answer: there is actually no difference between phone and tablet form factor. The problem was that I tried to reference the orientation by App.ActiveScreen.Orientation which is fixed on the "DesignOrientation".

     

    But the actual current orientation can only be accessed by your way: "Parent.Orientation" which works in Phone as well as in Tablet mode.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard