OnIdiom<T> 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>OnIdiom<T>

Constructors

OnIdiom<T>() OnIdiom<T>()

Initializes a new instance of OnIdiom

Properties

Default Default
Desktop Desktop

Gets or sets the value applied on desktop systems.

Phone Phone

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

Tablet Tablet

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

TV TV

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

Watch Watch

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

Operators

Implicit(OnIdiom<T> to T) Implicit(OnIdiom<T> to T)

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

Applies to