OnIdiom<T> 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.
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
-
System.ObjectOnIdiom<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. |