C# Class AppStore.Templates.StartPage

This page deals with the StartPage of all the App-Template.
Inheritance: Windows.UI.Xaml.Controls.Page
Show file Open project: BuildmLearn/BuildmLearn-Store

Public Properties

Property Type Description
removeParameter string

Public Methods

Method Description
GetElementRect ( FrameworkElement element ) : Rect

This is the position of the retcangle where the app will be pinned on the Start Page.

StartPage ( ) : AppStore.Common

Public Construtor to the StartPage. Populates the views pertaining to this page.

Protected Methods

Method Description
OnNavigatedFrom ( NavigationEventArgs e ) : void

The methods provided in this section are simply used to allow NavigationHelper to respond to the page's navigation methods.

Page specific logic should be placed in event handlers for the NavigationHelper.LoadState and NavigationHelper.SaveState. The navigation parameter is available in the LoadState method in addition to page state preserved during an earlier session.

OnNavigatedTo ( NavigationEventArgs e ) : void

The methods provided in this section are simply used to allow NavigationHelper to respond to the page's navigation methods.

Page specific logic should be placed in event handlers for the NavigationHelper.LoadState and NavigationHelper.SaveState. The navigation parameter is available in the LoadState method in addition to page state preserved during an earlier session.

Private Methods

Method Description
Connect ( int connectionId, object target ) : void
Init ( ) : void

The method which initializes the appbar button in the application bar, whether the app is pinned or not.

InitializeComponent ( ) : void
NavigationHelper_LoadState ( object sender, LoadStateEventArgs e ) : void

Populates the page with content passed during navigation. Any saved state is also provided when recreating a page from a prior session.

NavigationHelper_SaveState ( object sender, SaveStateEventArgs e ) : void

Preserves state associated with this page in case the application is suspended or the page is discarded from the navigation cache. Values must conform to the serialization requirements of SuspensionManager.SessionState.

Start_Click ( object sender, RoutedEventArgs e ) : void

Executed when the Start button is tapped/pressed. Populates the app-template.

ToggleAppBarButton ( bool showPinButton ) : void

Toggles the appbar button in the application bar.

pinToAppBar_Click ( object sender, RoutedEventArgs e ) : void

It pins the app to the StartPage.

updateTile ( ) : void

It updates the tile, which makes a live tile view in the StartPage.

Method Details

GetElementRect() public static method

This is the position of the retcangle where the app will be pinned on the Start Page.
public static GetElementRect ( FrameworkElement element ) : Rect
element Windows.UI.Xaml.FrameworkElement FrameworkElement element object
return Windows.Foundation.Rect

OnNavigatedFrom() protected method

The methods provided in this section are simply used to allow NavigationHelper to respond to the page's navigation methods.

Page specific logic should be placed in event handlers for the NavigationHelper.LoadState and NavigationHelper.SaveState. The navigation parameter is available in the LoadState method in addition to page state preserved during an earlier session.

protected OnNavigatedFrom ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Provides data for navigation methods and event /// handlers that cannot cancel the navigation request.
return void

OnNavigatedTo() protected method

The methods provided in this section are simply used to allow NavigationHelper to respond to the page's navigation methods.

Page specific logic should be placed in event handlers for the NavigationHelper.LoadState and NavigationHelper.SaveState. The navigation parameter is available in the LoadState method in addition to page state preserved during an earlier session.

protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Provides data for navigation methods and event /// handlers that cannot cancel the navigation request.
return void

StartPage() public method

Public Construtor to the StartPage. Populates the views pertaining to this page.
public StartPage ( ) : AppStore.Common
return AppStore.Common

Property Details

removeParameter public static property

public static string removeParameter
return string