C# Class Examples.ExamplesChat.WinRT.MainPage

A basic page that provides characteristics common to most applications.
Inheritance: ExamplesChat.WinRT.Common.LayoutAwarePage
Show file Open project: MarcFletcher/NetworkComms.Net

Public Methods

Method Description
MainPage ( ) : NetworkCommsDotNet

Protected Methods

Method Description
LoadState ( Object navigationParameter, Object>.Dictionary pageState ) : void

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

SaveState ( Object>.Dictionary pageState ) : 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.

Private Methods

Method Description
Application_Suspending ( object sender, Windows e ) : void
CurrentMessageInputBox_KeyUp ( object sender, KeyRoutedEventArgs e ) : void

If the key pressed is enter then send the completed message

JSONRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to JSON serializer when the JSON radio button is highlighted

ProtobufRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to Protobuf serializer when the Protobuf radio button is highlighted

TCPRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to TCP mode when the TCP radio button is highlighted

UDPRadioButton_Checked ( object sender, RoutedEventArgs e ) : void

Switch to UDP mode when the UDP radio button is highlighted

enableServerBox_CheckedUnChecked ( object sender, RoutedEventArgs e ) : void

Enable and disable the local server mode when selected

encryptionBox_Checked ( object sender, RoutedEventArgs e ) : void

Enable encryption if it is selected

localNameBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the local name information when focus is lost

remoteIPBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the remote IP information when focus is lost

remotePortBox_LostFocus ( object sender, RoutedEventArgs e ) : void

Update the remote port information when focus is lost

Method Details

LoadState() protected method

Populates the page with content passed during navigation. Any saved state is also provided when recreating a page from a prior session.
protected LoadState ( Object navigationParameter, Object>.Dictionary pageState ) : void
navigationParameter Object The parameter value passed to /// when this page was initially requested. ///
pageState Object>.Dictionary A dictionary of state preserved by this page during an earlier /// session. This will be null the first time a page is visited.
return void

MainPage() public method

public MainPage ( ) : NetworkCommsDotNet
return NetworkCommsDotNet

SaveState() protected method

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.
protected SaveState ( Object>.Dictionary pageState ) : void
pageState Object>.Dictionary An empty dictionary to be populated with serializable state.
return void