Trigger Display Landscape

Sometimes my design doesn’t look right when the screen is in landscape mode, and if the screen is in landscape mode I would like to hide some elements to improve the design or make some changes.

Something like what exists in CSS with mediaqueris: http://www.w3.org/TR/css3-mediaqueries/#orientation

    <Text ux:Name="Description" Value="Test">

    <WhileDisplayLandscape>
        <Change Description.Visibility="Collapsed"/>
    </WhileDisplayLandscape>

<WhileWindowPortrait> and <WhileWindowLandscape> might be what you’re looking for. :slight_smile:

Note: as far as I know these relate to the aspect ratio of whichever component they’re attached to, not the general orientation of the device.