C# Class PhotoSharingApp.Universal.App

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

Méthodes publiques

Méthode 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().

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System

OnActivated() protected méthode

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.
Résultat void

OnLaunched() protected méthode

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.
Résultat void

OnShareTargetActivated() protected méthode

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