22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
5- using Microsoft . Toolkit . Uwp . Input . GazeInteraction ;
65using System ;
6+ using Microsoft . Toolkit . Uwp . Input . GazeInteraction ;
77using Windows . ApplicationModel ;
88using Windows . ApplicationModel . Activation ;
99using Windows . UI . Xaml ;
@@ -15,9 +15,10 @@ namespace GazeInputTest
1515 /// <summary>
1616 /// Provides application-specific behavior to supplement the default Application class.
1717 /// </summary>
18- sealed partial class App : Application
18+ public sealed partial class App : Application
1919 {
2020 /// <summary>
21+ /// Initializes a new instance of the <see cref="App"/> class.
2122 /// Initializes the singleton application object. This is the first line of authored code
2223 /// executed, and as such is the logical equivalent of main() or WinMain().
2324 /// </summary>
@@ -47,7 +48,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
4748
4849 if ( e . PreviousExecutionState == ApplicationExecutionState . Terminated )
4950 {
50- //TODO: Load state from previously suspended application
51+ // TODO: Load state from previously suspended application
5152 }
5253
5354 // Place the frame in the current Window
@@ -63,6 +64,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
6364 // parameter
6465 rootFrame . Navigate ( typeof ( MainPage ) , e . Arguments ) ;
6566 }
67+
6668 // Ensure the current window is active
6769 Window . Current . Activate ( ) ;
6870 }
@@ -75,7 +77,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
7577 /// </summary>
7678 /// <param name="sender">The Frame which failed navigation</param>
7779 /// <param name="e">Details about the navigation failure</param>
78- void OnNavigationFailed ( object sender , NavigationFailedEventArgs e )
80+ private void OnNavigationFailed ( object sender , NavigationFailedEventArgs e )
7981 {
8082 throw new Exception ( "Failed to load Page " + e . SourcePageType . FullName ) ;
8183 }
@@ -90,7 +92,8 @@ void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
9092 private void OnSuspending ( object sender , SuspendingEventArgs e )
9193 {
9294 var deferral = e . SuspendingOperation . GetDeferral ( ) ;
93- //TODO: Save application state and stop any background activity
95+
96+ // TODO: Save application state and stop any background activity
9497 deferral . Complete ( ) ;
9598 }
9699 }
0 commit comments