C# 클래스 HueApp.MainPage

The main page for the Hue app controls.
상속: Windows.UI.Xaml.Controls.Page, INotifyPropertyChanged
파일 보기 프로젝트 열기: Microsoft/Windows-appsample-huelightcontroller

Private Properties

프로퍼티 타입 설명
BluetoothWatcher_Click void
DisableWatcher void
EnableWatcherAsync System.Threading.Tasks.Task
LightRefresh_Click void

공개 메소드들

메소드 설명
MainPage ( ) : HueLibrary

Constructor for MainPage.

보호된 메소드들

메소드 설명
OnNavigatedTo ( NavigationEventArgs e ) : void

Fires when the page is navigated to, which occurs after the extended splash screen has finished loading all Hue resources.

비공개 메소드들

메소드 설명
BluetoothWatcher_Click ( object sender, RoutedEventArgs e ) : void

Fires when the Bluetooth watcher app bar toggle button is clicked.

DisableWatcher ( ) : void

Disables the background watcher.

EnableWatcherAsync ( ) : System.Threading.Tasks.Task

Registers the Bluetooth LE watcher background task, assuming Bluetooth is available.

LightRefresh_Click ( object sender, RoutedEventArgs e ) : void

Refreshes the UI to match the actual state of the lights.

메소드 상세

MainPage() 공개 메소드

Constructor for MainPage.
public MainPage ( ) : HueLibrary
리턴 HueLibrary

OnNavigatedTo() 보호된 메소드

Fires when the page is navigated to, which occurs after the extended splash screen has finished loading all Hue resources.
protected OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs
리턴 void