PhoneApplicationPage Orientation Property
The PhoneApplicationPage
includes an Orientation
dependency property, which is shown in the following excerpt (take note of the set accessor):
public PageOrientation Orientation{ get { return (PageOrientation)base.GetValue(OrientationProperty); } [EditorBrowsable(EditorBrowsableState.Never)] set { if (Frame.IsInDesignMode()) { base.SetValue(OrientationProperty, value); } }}
You see that changing the page orientation at runtime is not as straightforward as it might first appear. The Orientation
property’s set accessor has an effect only at design time and not at runtime. At runtime, the Orientation
property indicates ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.