CastingDevicePicker CastingDevicePicker CastingDevicePicker CastingDevicePicker Class

Definition

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

public : sealed class CastingDevicePicker : ICastingDevicePickerpublic sealed class CastingDevicePicker : ICastingDevicePickerPublic NotInheritable Class CastingDevicePicker Implements ICastingDevicePicker// You can use this class in JavaScript.
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

CastingDevicePicker() CastingDevicePicker() CastingDevicePicker() CastingDevicePicker()

Creates a CastingDevicePicker object.

public : CastingDevicePicker()public CastingDevicePicker()Public Sub New()// You can use this method in JavaScript.

Properties

Appearance Appearance Appearance Appearance

Gets the colors of the picker UI.

public : DevicePickerAppearance Appearance { get; }public DevicePickerAppearance Appearance { get; }Public ReadOnly Property Appearance As DevicePickerAppearance// You can use this property in JavaScript.

Filter Filter Filter Filter

Gets the filter information for which devices to show in the picker.

public : CastingDevicePickerFilter Filter { get; }public CastingDevicePickerFilter Filter { get; }Public ReadOnly Property Filter As CastingDevicePickerFilter// You can use this property in JavaScript.

Methods

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

Hides the device picker UI.

public : void Hide()public void Hide()Public Function Hide() As void// You can use this method in JavaScript.

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

Shows the casting device picker UI, which flies out from an edge of the provided rectangle.

public : void Show(Rect selection)public void Show(Rect selection)Public Function Show(selection As Rect) As void// You can use this method in JavaScript.
Parameters
selection
Rect Rect Rect Rect

The rectangle from which the picker UI should fly out.

See Also

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

Shows the casting device picker UI, which flies out from the specified edge of the provided rectangle.

public : void Show(Rect selection, Placement preferredPlacement)public void Show(Rect selection, Placement preferredPlacement)Public Function Show(selection As Rect, preferredPlacement As Placement) As void// You can use this method in JavaScript.
Parameters
selection
Rect Rect Rect Rect

The rectangle from which the picker should fly out.

preferredPlacement
Placement Placement Placement Placement

The edge of the rectangle from which the picker should fly out.

See Also

Events

CastingDevicePickerDismissed CastingDevicePickerDismissed CastingDevicePickerDismissed CastingDevicePickerDismissed

Indicates that the user has dismissed the picker UI.

public : event TypedEventHandler CastingDevicePickerDismissed<CastingDevicePicker,  object>public event TypedEventHandler CastingDevicePickerDismissed<CastingDevicePicker,  object>Public Event CastingDevicePickerDismissed<CastingDevicePicker,  object>// You can use this event in JavaScript.

CastingDeviceSelected CastingDeviceSelected CastingDeviceSelected CastingDeviceSelected

Indicates that the user has selected a device from the picker.

public : event TypedEventHandler CastingDeviceSelected<CastingDevicePicker,  CastingDeviceSelectedEventArgs>public event TypedEventHandler CastingDeviceSelected<CastingDevicePicker,  CastingDeviceSelectedEventArgs>Public Event CastingDeviceSelected<CastingDevicePicker,  CastingDeviceSelectedEventArgs>// You can use this event in JavaScript.