DialDevicePicker Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a picker flyout that contains a list of remote devices for the user to choose from.
In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow.
public ref class DialDevicePicker sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DialDevicePicker final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class DialDevicePicker final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DialDevicePicker
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class DialDevicePicker
function DialDevicePicker()
Public NotInheritable Class DialDevicePicker
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Constructors
DialDevicePicker() |
Creates a new DialDevicePicker object. In a desktop app, before using an instance of this class in a way that displays UI, you'll need to associate the object with its owner's window handle. For more info, and code examples, see Display WinRT UI objects that depend on CoreWindow. |
Properties
Appearance |
Used to change the colors of the picker. |
Filter |
Gets the filter used to choose what devices to show in the picker. |
Methods
Hide() |
Hides the picker. |
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. |
PickSingleDialDeviceAsync(Rect) |
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) |
Updates the picker UI to reflect the status fo a given remote device. |
Show(Rect, Placement) |
Displays the picker to the user. When called, the picker flies out from the specified edge of the provided rectangle. |
Show(Rect) |
Displays the picker to the user. When called, the picker flies out from an edge of the provided rectangle. |
Events
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 |
Indicates that the user selected a device from the picker. |
DisconnectButtonClicked |
Indicates that the user clicked on the disconnect button in the picker. |