C# Class PhotoSharingApp.Universal.App

Share target extensions for the app.
Inheritance: Windows.UI.Xaml.Application
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
App ( ) : System

Initializes the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().

Protected Methods

Method Description
OnActivated ( IActivatedEventArgs args ) : void

Invoked when the application is activated by some means other than normal launching.

OnLaunched ( LaunchActivatedEventArgs e ) : void

Invoked when the application is launched normally by the end user. Other entry points will be used such as when the application is launched to open a specific file.

OnShareTargetActivated ( ShareTargetActivatedEventArgs args ) : void

Invoked when the application is activated through sharing association.

Private Methods

Method Description
GetOrCreateRootFrame ( ) : Frame
GoldReceivedNotificationClickedHandler ( IActivatedEventArgs args ) : void

Navigate to the Photo details page for which the Gold was received.

Initialize ( ) : Task

Initialize the App launch.

OnNavigationFailed ( object sender, NavigationFailedEventArgs e ) : void

Invoked when Navigation to a certain page fails

OnSuspending ( object sender, SuspendingEventArgs e ) : void

Invoked when application execution is being suspended. Application state is saved without knowing whether the application will be terminated or resumed with the contents of memory still intact.

OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Invoked when the app runs into an unhandled exception. Telemetry logs the unhandled exception and appropriate message is displayed to the user experiencing the exception.

Method Details

App() public method

Initializes the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().
public App ( ) : System
return System

OnActivated() protected method

Invoked when the application is activated by some means other than normal launching.
protected OnActivated ( IActivatedEventArgs args ) : void
args IActivatedEventArgs Event data for the event.
return void

OnLaunched() protected method

Invoked when the application is launched normally by the end user. Other entry points will be used such as when the application is launched to open a specific file.
protected OnLaunched ( LaunchActivatedEventArgs e ) : void
e Windows.ApplicationModel.Activation.LaunchActivatedEventArgs Details about the launch request and process.
return void

OnShareTargetActivated() protected method

Invoked when the application is activated through sharing association.
protected OnShareTargetActivated ( ShareTargetActivatedEventArgs args ) : void
args Windows.ApplicationModel.Activation.ShareTargetActivatedEventArgs Event data for the event.
return void