C# Class GreaterShare.App

Provides application-specific behavior to supplement the default Application class.
Inheritance: Windows.UI.Xaml.Application
Show file Open project: waynebaby/GreaterShareUWP

Public Properties

Property Type Description
CurrentAppUri Task
CurrentFile BehaviorSubject

Public Methods

Method Description
App ( ) : GreaterShare.Models.Sharing.ShareItems

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().

InitConfigurationInThisAssembly ( ) : void
OnNavigationFailed ( object sender, NavigationFailedEventArgs e ) : void

Invoked when Navigation to a certain page fails

SetTitleBarColor ( ) : void

Protected Methods

Method Description
OnFileActivated ( FileActivatedEventArgs args ) : void
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

Private Methods

Method Description
ConfigTitlebar ( ) : void
ConfigureCommandAndCommandExceptionHandler ( ) : void

Configure event handler when command executed or exception happens

CreatOrSetupeRootFrame ( ) : Frame
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.

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 ( ) : GreaterShare.Models.Sharing.ShareItems
return GreaterShare.Models.Sharing.ShareItems

InitConfigurationInThisAssembly() public static method

public static InitConfigurationInThisAssembly ( ) : void
return void

OnFileActivated() protected method

protected OnFileActivated ( FileActivatedEventArgs args ) : void
args Windows.ApplicationModel.Activation.FileActivatedEventArgs
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

OnNavigationFailed() public method

Invoked when Navigation to a certain page fails
public OnNavigationFailed ( object sender, NavigationFailedEventArgs e ) : void
sender object The Frame which failed navigation
e Windows.UI.Xaml.Navigation.NavigationFailedEventArgs Details about the navigation failure
return void

OnShareTargetActivated() protected method

protected OnShareTargetActivated ( ShareTargetActivatedEventArgs args ) : void
args Windows.ApplicationModel.Activation.ShareTargetActivatedEventArgs
return void

SetTitleBarColor() public static method

public static SetTitleBarColor ( ) : void
return void

Property Details

CurrentAppUri public static property

public static Task CurrentAppUri
return Task

CurrentFile public static property

public static BehaviorSubject CurrentFile
return BehaviorSubject