OnIdiom<T> Class

Definition

Provides idiom-specific value for T for the current target idiom.

public class OnIdiom<T>
type OnIdiom<'T> = class

Type Parameters

T

The type for which to get a platform-specific implementation.

Inheritance
OnIdiom<T>

Constructors

OnIdiom<T>()

Initializes a new instance of OnIdiom

Properties

Default
Desktop

Gets or sets the value applied on desktop systems.

Phone

Gets or sets the value applied on Phone-like devices.

Tablet

Gets or sets the value applied on Tablet-like devices.

TV

Gets or sets the value applied on TV-like devices.

Watch

Gets or sets the value applied on watch-like devices.

Operators

Implicit(OnIdiom<T> to T)

Implicitly converts OnIdiom to T, depending on Device.Idiom.

Applies to