equal
deleted
inserted
replaced
124 /// <param name="sender"></param> |
124 /// <param name="sender"></param> |
125 /// <param name="e"></param> |
125 /// <param name="e"></param> |
126 private void OnApplicationActivated(object sender, EventArgs e) |
126 private void OnApplicationActivated(object sender, EventArgs e) |
127 { |
127 { |
128 //TODO: enable audio, animations here |
128 //TODO: enable audio, animations here |
|
129 |
129 } |
130 } |
130 |
131 |
131 /// <summary> |
132 /// <summary> |
132 /// This is called when application is in preview mode. |
133 /// This is called when application is in preview mode. |
133 /// </summary> |
134 /// </summary> |
146 /// <param name="sender"></param> |
147 /// <param name="sender"></param> |
147 /// <param name="e"></param> |
148 /// <param name="e"></param> |
148 private void OnApplicationDeactivated(object sender, EventArgs e) |
149 private void OnApplicationDeactivated(object sender, EventArgs e) |
149 { |
150 { |
150 //TODO: disable audio, animations here |
151 //TODO: disable audio, animations here |
|
152 } |
|
153 |
|
154 /// <summary> |
|
155 /// This is called when application has been loaded, we change the orientation |
|
156 /// of the application |
|
157 /// </summary> |
|
158 /// <param name="sender"></param> |
|
159 /// <param name="e"></param> |
|
160 private void mainSurfaceWindow_Loaded(object sender, RoutedEventArgs e) |
|
161 { |
|
162 |
|
163 if (ApplicationLauncher.InitialOrientation == UserOrientation.Top) |
|
164 { |
|
165 // Rotate the main canvas by 180 degrees. |
|
166 this.MainGrid.LayoutTransform = new RotateTransform(180.0); |
|
167 } |
|
168 else |
|
169 { |
|
170 // Remove the rotate transform on the main canvas. |
|
171 this.MainGrid.LayoutTransform = null; |
|
172 } |
|
173 // Dismiss the loading screen. |
|
174 ApplicationLauncher.SignalApplicationLoadComplete(); |
151 } |
175 } |
152 |
176 |
153 private void scaterview_ContactChanged(object sender, ContactEventArgs e) |
177 private void scaterview_ContactChanged(object sender, ContactEventArgs e) |
154 { } |
178 { } |
155 |
179 |