C# Class SDKTemplate.MainPage

Inheritance: global::Windows.UI.Xaml.Controls.Page
Exibir arquivo Open project: jkuemerle/CodeMash2013 Class Usage Examples

Public Properties

Property Type Description
AutoSizeInputSectionWhenSnapped bool
Current MainPage
LaunchArgs Windows.ApplicationModel.Activation.LaunchActivatedEventArgs

Public Methods

Method Description
LoadScenario ( Type scenarioClass ) : void

This method is responsible for loading the individual input and output sections for each scenario. This is based on navigating a hidden Frame to the ScenarioX.xaml page and then extracting out the input and output sections into the respective UserControl on the main page.

MainPage ( ) : System
MainPage_SizeChanged ( object sender, SizeChangedEventArgs e ) : void
NotifyUser ( string strMessage, NotifyType type ) : void
Scenarios_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void

Protected Methods

Method Description
OnNavigatedFrom ( NavigationEventArgs e ) : void
OnNavigatedTo ( NavigationEventArgs e ) : void

Invoked when this page is about to be displayed in a Frame.

Private Methods

Method Description
AddContentValue ( string title, string description = null ) : void
AddQuickLink_Checked ( object sender, RoutedEventArgs e ) : void
AddQuickLink_Unchecked ( object sender, RoutedEventArgs e ) : void
ExpandLongRunningShareSection_Checked ( object sender, RoutedEventArgs e ) : void
ExpandLongRunningShareSection_Unchecked ( object sender, RoutedEventArgs e ) : void
Footer_Click ( object sender, RoutedEventArgs e ) : void
InvalidateSize ( ) : void
InvalidateViewState ( ) : void
LongRunningShareLabel_Tapped ( object sender, TappedRoutedEventArgs e ) : void
NotifyUserBackgroundThread ( string message, NotifyType type ) : void
OnQuerySubmitted ( object sender, SearchPaneQuerySubmittedEventArgs args ) : void
PopulateScenarios ( ) : void
ProcessQueryText ( string queryText ) : void
QuickLinkSectionLabel_Tapped ( object sender, TappedRoutedEventArgs e ) : void
ReportCompleted_Click ( object sender, RoutedEventArgs e ) : void
ReportDataRetrieved_Click ( object sender, RoutedEventArgs e ) : void
ReportErrorButton_Click ( object sender, RoutedEventArgs e ) : void
ReportStarted_Click ( object sender, RoutedEventArgs e ) : void
ReportSubmittedBackgroundTask_Click ( object sender, RoutedEventArgs e ) : void
SetFeatureName ( string str ) : void

Method Details

LoadScenario() public method

This method is responsible for loading the individual input and output sections for each scenario. This is based on navigating a hidden Frame to the ScenarioX.xaml page and then extracting out the input and output sections into the respective UserControl on the main page.
public LoadScenario ( Type scenarioClass ) : void
scenarioClass System.Type
return void

MainPage() public method

public MainPage ( ) : System
return System

MainPage_SizeChanged() public method

public MainPage_SizeChanged ( object sender, SizeChangedEventArgs e ) : void
sender object
e Windows.UI.Xaml.SizeChangedEventArgs
return void

NotifyUser() public method

public NotifyUser ( string strMessage, NotifyType type ) : void
strMessage string
type NotifyType
return void

OnNavigatedFrom() protected method

protected OnNavigatedFrom ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
return void

OnNavigatedTo() protected method

Invoked when this page is about to be displayed in a Frame.
protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Event data that describes how this page was reached. The Parameter /// property is typically used to configure the page.
return void

Scenarios_SelectionChanged() public method

public Scenarios_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
sender object
e Windows.UI.Xaml.Controls.SelectionChangedEventArgs
return void

Property Details

AutoSizeInputSectionWhenSnapped public_oe property

public bool AutoSizeInputSectionWhenSnapped
return bool

Current public_oe static_oe property

public static MainPage Current
return MainPage

LaunchArgs public_oe property

public Windows.ApplicationModel.Activation.LaunchActivatedEventArgs LaunchArgs
return Windows.ApplicationModel.Activation.LaunchActivatedEventArgs