C# Class PDF417DirectAPIDemo.MainPage

Main application page containing RecognizerControl
Inheritance: PhoneApplicationPage
Datei anzeigen Open project: PDF417/pdf417-windows-phone

Public Methods

Method Description
MainPage ( ) : System

Default construtor. Initializes photo chooser task

Protected Methods

Method Description
OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void

Called when this page is navigated to.

OnNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e ) : void

Called when the user leaves this page.

Private Methods

Method Description
Button_Click ( object sender, RoutedEventArgs e ) : void

Opens a photo chooser page on button click

ReenableButton ( ) : void

hides the "in progress" message and reenables the button

SetScanInProgress ( ) : void

displays the "in progress" message and disables the button

mRecognizer_OnScanningDone ( IList resultList, RecognitionType recognitionType ) : void

Handles completed scanning events. Navigates to results page if scanning was successful.

photoChooserTask_Completed ( object sender, PhotoResult e ) : void

When user chooses a photo starts the recognition process

Method Details

MainPage() public method

Default construtor. Initializes photo chooser task
public MainPage ( ) : System
return System

OnNavigatedTo() protected method

Called when this page is navigated to.
protected OnNavigatedTo ( System.Windows.Navigation.NavigationEventArgs e ) : void
e System.Windows.Navigation.NavigationEventArgs
return void

OnNavigatingFrom() protected method

Called when the user leaves this page.
protected OnNavigatingFrom ( System.Windows.Navigation.NavigatingCancelEventArgs e ) : void
e System.Windows.Navigation.NavigatingCancelEventArgs
return void