C# Класс InTheHand.Devices.Enumeration.DevicePicker

Represents a picker flyout that contains a list of devices for the user to choose from.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DevicePicker ( ) : System

Creates a DevicePicker object.

Hide ( ) : void

Hides the picker.

PickSingleDeviceAsync ( Rect selection ) : Task

Shows the picker UI and returns the selected device; does not require you to register for an event.

PickSingleDeviceAsync ( Rect selection, Placement placement ) : Task

Shows the picker UI and returns the selected device; does not require you to register for an event.

Show ( Rect selection ) : void

Shows the picker UI.

Show ( Rect selection, Placement placement ) : void

Shows the picker UI.

Приватные методы

Метод Описание
OnDevicePickerDismissed ( ) : void
OnDeviceSelected ( Windows device ) : void

Описание методов

DevicePicker() публичный Метод

Creates a DevicePicker object.
public DevicePicker ( ) : System
Результат System

Hide() публичный Метод

Hides the picker.
public Hide ( ) : void
Результат void

PickSingleDeviceAsync() публичный Метод

Shows the picker UI and returns the selected device; does not require you to register for an event.
public PickSingleDeviceAsync ( Rect selection ) : Task
selection Windows.Foundation.Rect The rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
Результат Task

PickSingleDeviceAsync() публичный Метод

Shows the picker UI and returns the selected device; does not require you to register for an event.
public PickSingleDeviceAsync ( Rect selection, Placement placement ) : Task
selection Windows.Foundation.Rect The rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
placement Placement The edge of the rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
Результат Task

Show() публичный Метод

Shows the picker UI.
public Show ( Rect selection ) : void
selection Windows.Foundation.Rect The rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
Результат void

Show() публичный Метод

Shows the picker UI.
public Show ( Rect selection, Placement placement ) : void
selection Windows.Foundation.Rect The rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
placement Placement The edge of the rectangle from which you want the picker to fly out. /// Ignored on Windows Phone.
Результат void