equal
deleted
inserted
replaced
83 catch (Exception ex) { } |
83 catch (Exception ex) { } |
84 } |
84 } |
85 |
85 |
86 |
86 |
87 /// <summary> |
87 /// <summary> |
|
88 /// CopyTo rotate the layout based on the suggested orientation |
|
89 /// </summary> |
|
90 /// <param name="e"></param> |
|
91 private void MainGrid_Loaded(object sender, RoutedEventArgs e) |
|
92 { |
|
93 if (ApplicationLauncher.InitialOrientation == UserOrientation.Top) |
|
94 { |
|
95 // Rotate the main canvas by 180 degrees. |
|
96 this.MainGrid.LayoutTransform = new RotateTransform(180.0); |
|
97 } |
|
98 else |
|
99 { |
|
100 // Remove the rotate transform on the main canvas. |
|
101 this.MainGrid.LayoutTransform = null; |
|
102 } |
|
103 // Dismiss the loading screen. |
|
104 ApplicationLauncher.SignalApplicationLoadComplete(); |
|
105 } |
|
106 |
|
107 /// <summary> |
88 /// Occurs when the window is about to close. |
108 /// Occurs when the window is about to close. |
89 /// </summary> |
109 /// </summary> |
90 /// <param name="e"></param> |
110 /// <param name="e"></param> |
91 protected override void OnClosed(EventArgs e) |
111 protected override void OnClosed(EventArgs e) |
92 { |
112 { |