DevicePicker DevicePicker DevicePicker DevicePicker DevicePicker Class

Definition

Represents a picker flyout that contains a list of devices for the user to choose from.

public : sealed class DevicePicker
struct winrt::Windows::Devices::Enumeration::DevicePicker
public sealed class DevicePicker
Public NotInheritable Class DevicePicker
var devicePicker = new devicePicker();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

DevicePicker() DevicePicker() DevicePicker() DevicePicker() DevicePicker()

Creates a DevicePicker object.

Properties

Appearance Appearance Appearance Appearance Appearance

Gets the colors of the picker.

Filter Filter Filter Filter Filter

Gets the filter used to choose what devices to show in the picker.

RequestedProperties RequestedProperties RequestedProperties RequestedProperties RequestedProperties

Gets a collection of properties for the returned device information object.

Methods

Hide() Hide() Hide() Hide() Hide()

Hides the picker.

PickSingleDeviceAsync(Rect) PickSingleDeviceAsync(Rect) PickSingleDeviceAsync(Rect) PickSingleDeviceAsync(Rect) PickSingleDeviceAsync(Rect)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the edge of the specified rectangle.

PickSingleDeviceAsync(Rect, Placement) PickSingleDeviceAsync(Rect, Placement) PickSingleDeviceAsync(Rect, Placement) PickSingleDeviceAsync(Rect, Placement) PickSingleDeviceAsync(Rect, Placement)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the specified edge of the specified rectangle.

SetDisplayStatus(DeviceInformation, String, DevicePickerDisplayStatusOptions) SetDisplayStatus(DeviceInformation, String, DevicePickerDisplayStatusOptions) SetDisplayStatus(DeviceInformation, String, DevicePickerDisplayStatusOptions) SetDisplayStatus(DeviceInformation, String, DevicePickerDisplayStatusOptions) SetDisplayStatus(DeviceInformation, String, DevicePickerDisplayStatusOptions)

Updates the picker UI to reflect the provided status and display options for a specified device.

Show(Rect) Show(Rect) Show(Rect) Show(Rect) Show(Rect)

Shows the picker UI. The picker flies out from the edge of the specified rectangle.

Show(Rect, Placement) Show(Rect, Placement) Show(Rect, Placement) Show(Rect, Placement) Show(Rect, Placement)

Shows the picker UI. The picker flies out from the specified edge of the specified rectangle.

Events

DevicePickerDismissed DevicePickerDismissed DevicePickerDismissed DevicePickerDismissed DevicePickerDismissed

Indicates that the device picker was light dismissed by the user. Light dismiss happens when the user clicks somewhere other than the picker UI and the picker UI disappears.

DeviceSelected DeviceSelected DeviceSelected DeviceSelected DeviceSelected

Indicates that the user selected a device in the picker.

DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked

Indicates that the user clicked or tapped the disconnect button for a device in the picker.

See also