C# Класс AppStore.Templates.StartPage

This page deals with the StartPage of all the App-Template.
Наследование: Windows.UI.Xaml.Controls.Page
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
removeParameter string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

GetElementRect() публичный статический Метод

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
Результат Windows.Foundation.Rect

OnNavigatedFrom() защищенный Метод

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.
Результат void

OnNavigatedTo() защищенный Метод

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.
Результат void

StartPage() публичный Метод

Public Construtor to the StartPage. Populates the views pertaining to this page.
public StartPage ( ) : AppStore.Common
Результат AppStore.Common

Описание свойств

removeParameter публичное статическое свойство

public static string removeParameter
Результат string