C# Class IoTCoreDefaultApp.Settings

An empty page that can be used on its own or navigated to within a Frame.
Inheritance: Windows.UI.Xaml.Controls.Page
Show file Open project: MicrosoftEdge/WebOnPi

Public Methods

Method Description
Settings ( ) : System

Protected Methods

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

Private Methods

Method Description
AcceptPairing ( ) : void

Accept the pairing and complete the deferral

AcceptPairingWithPIN ( string PIN ) : void
App_InboundPairingRequested ( object sender, InboundPairingEventArgs inboundArgs ) : void
BackButton_Clicked ( object sender, RoutedEventArgs e ) : void
BluetoothWatcherToggle_Toggled ( object sender, RoutedEventArgs e ) : void
CancelButton_Clicked ( object sender, RoutedEventArgs e ) : void
ClearConfirmationPanel ( ) : void
CompleteDeferral ( ) : void
ConnectAutomaticallyCheckBox_Checked ( object sender, RoutedEventArgs e ) : void
ConnectButton_Clicked ( object sender, RoutedEventArgs e ) : void
ConnectToWifi ( WiFiAvailableNetwork network, PasswordCredential credential, CoreDispatcher dispatcher ) : void
DisplayMessagePanel ( string confirmationMessage, MessageType messageType ) : void

This is really just a replacement for MessageDialog, which you can't use on Athens

GetSelectedCeremonies ( ) : DevicePairingKinds

Get the set of acceptable ceremonies from the check boxes

LanguageListBox_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
MakeDiscoverable ( ) : System.Threading.Tasks.Task
NextButton_Clicked ( object sender, RoutedEventArgs e ) : void
NoButton_Click ( object sender, RoutedEventArgs e ) : void

The No button on the DisplayConfirmationPanelAndComplete - completes the deferral and clears the message panel

OnConnectionReceived ( Windows listener, Windows args ) : void

We have to have a callback handler to handle "ConnectionReceived" but we don't do anything because the StartAdvertising is just a way to turn on Bluetooth discoverability

PairButton_Click ( object sender, RoutedEventArgs e ) : void

User wants to use custom pairing with the selected ceremony types and Default protection level

PairingRequestedHandler ( DeviceInformationCustomPairing sender, DevicePairingRequestedEventArgs args ) : void

Called when custom pairing is initiated so that we can handle the custom ceremony

PinEntryTextBox_KeyDown ( object sender, Windows e ) : void

User has entered a PIN and pressed in the PIN entry flyout

RefreshButton_Click ( object sender, RoutedEventArgs e ) : void
RegisterForInboundPairingRequests ( ) : void
ResultsListView_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void

Call when selection changes on the list of discovered Bluetooth devices

SetSelectedCeremonies ( int selectedCeremonies ) : void

Set the check boxes to refelect the set of acceptable ceremonies

SettingsChoice_ItemClick ( object sender, ItemClickEventArgs e ) : void
SetupBluetooth ( ) : void
SetupEthernet ( ) : void
SetupLanguages ( ) : void
SetupNetwork ( ) : void
SetupWifi ( ) : void
StartWatcher ( ) : void

Start the Device Watcher and set callbacks to handle devices appearing and disappearing

StartWatcherButton_Click ( object sender, RoutedEventArgs e ) : void
StartWatchingAndDisplayConfirmationMessage ( ) : void
StopWatcher ( ) : void

Stop the Device Watcher

StopWatcherButton_Click ( object sender, RoutedEventArgs e ) : void
StopWatchingAndDisplayConfirmationMessage ( ) : void
SwitchToItemState ( object dataContext, DataTemplate template, bool forceUpdate ) : ListViewItem
SwitchToSelectedSettings ( string itemName ) : void
UnpairButton_Click ( object sender, RoutedEventArgs e ) : void

User wants to unpair from the selected device

WifiListView_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void
WifiPasswordBox_PasswordChanged ( object sender, RoutedEventArgs e ) : void
YesButton_Click ( object sender, RoutedEventArgs e ) : void

The Yes or OK button on the DisplayConfirmationPanelAndComplete - accepts the pairing, completes the deferral and clears the message panel

Method Details

OnNavigatedFrom() protected method

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

OnNavigatedTo() protected method

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

Settings() public method

public Settings ( ) : System
return System