C# Class AppStore.Templates.FlashCardPage

Inheritance: global::Windows.UI.Xaml.Controls.Page, global::Windows.UI.Xaml.Markup.IComponentConnector
Show file Open project: BuildmLearn/BuildmLearn-Store

Public Methods

Method Description
FlashCardPage ( ) : AppStore.Common

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

base64image ( string base64string ) : System.Threading.Tasks.Task

It converts string in Base64 to the Bitmap image.

populateQuestion ( int index ) : void

It populates the flash card question of the index passed to the current view.

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
Flip_Click ( object sender, RoutedEventArgs e ) : void

Executed when the Flip Button is tapped. It flips the flash card in the view.

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.

Next_Click ( object sender, RoutedEventArgs e ) : void

Executed when the Next Button is tapped. It populates next flash card question to the view.

Previous_Click ( object sender, RoutedEventArgs e ) : void

Executed when the Previous Button is tapped. It populates previous flash card question to the view.

Method Details

FlashCardPage() public method

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

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 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 NavigationEventArgs Provides data for navigation methods and event /// handlers that cannot cancel the navigation request.
return void

base64image() public static method

It converts string in Base64 to the Bitmap image.
public static base64image ( string base64string ) : System.Threading.Tasks.Task
base64string string
return System.Threading.Tasks.Task

populateQuestion() public method

It populates the flash card question of the index passed to the current view.
public populateQuestion ( int index ) : void
index int The index of flash card, which is to be populated in the view
return void