As you saw in the previous section, the
Orientation property of the
PhoneApplicationPage class cannot be assigned at runtime. Another approach is required to change the page orientation. For this turn to the
SupportedOrientations property, which is assignable at runtime.
To recap, the
SupportedOrientations property defines the allowed orientation or orientations of the page, which can be
SupportedOrientations property to the desired orientation forces the page to be shown in that orientation. For example, if the page is being viewed in portrait orientation, and you want to change the page orientation to landscape, you can set the