DialDevicePicker DialDevicePicker DialDevicePicker DialDevicePicker DialDevicePicker Class

Definition

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

public : sealed class DialDevicePicker
struct winrt::Windows::Media::DialProtocol::DialDevicePicker
public sealed class DialDevicePicker
Public NotInheritable Class DialDevicePicker
var dialDevicePicker = new dialDevicePicker();
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

DialDevicePicker() DialDevicePicker() DialDevicePicker() DialDevicePicker() DialDevicePicker()

Creates a new DialDevicePicker object.

Properties

Appearance Appearance Appearance Appearance Appearance

Used to change the colors of the picker.

Filter Filter Filter Filter Filter

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

Methods

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

Hides the picker.

PickSingleDialDeviceAsync(Rect) PickSingleDialDeviceAsync(Rect) PickSingleDialDeviceAsync(Rect) PickSingleDialDeviceAsync(Rect) PickSingleDialDeviceAsync(Rect)

Shows the picker. Call this method directly to show to show the picker, instead of showing it in response to an event.

PickSingleDialDeviceAsync(Rect, Placement) PickSingleDialDeviceAsync(Rect, Placement) PickSingleDialDeviceAsync(Rect, Placement) PickSingleDialDeviceAsync(Rect, Placement) PickSingleDialDeviceAsync(Rect, Placement)

Shows the picker. Call this method directly to show to show the picker, instead of showing it in response to an event.

SetDisplayStatus(DialDevice, DialDeviceDisplayStatus) SetDisplayStatus(DialDevice, DialDeviceDisplayStatus) SetDisplayStatus(DialDevice, DialDeviceDisplayStatus) SetDisplayStatus(DialDevice, DialDeviceDisplayStatus) SetDisplayStatus(DialDevice, DialDeviceDisplayStatus)

Updates the picker UI to reflect the status fo a given remote device.

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

Displays the picker to the user. When called, the picker flies out from an edge of the provided rectangle.

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

Displays the picker to the user. When called, the picker flies out from the specified edge of the provided rectangle.

Events

DialDevicePickerDismissed DialDevicePickerDismissed DialDevicePickerDismissed DialDevicePickerDismissed DialDevicePickerDismissed

Indicates that the device picker was light dismissed, which means that the user clicked or touched anywhere other than the picker UI, and so the picker will be closed.

DialDeviceSelected DialDeviceSelected DialDeviceSelected DialDeviceSelected DialDeviceSelected

Indicates that the user selected a device from the picker.

DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked DisconnectButtonClicked

Indicates that the user clicked on the disconnect button in the picker.