OnDeviceExtension Class

Definition

The OnDevice markup extension allows you to customize UI appearance on a per-DeviceFamily basis.

public class OnDeviceExtension : Windows.UI.Xaml.Markup.MarkupExtension
type OnDeviceExtension = class
    inherit MarkupExtension
Public Class OnDeviceExtension
Inherits MarkupExtension
Inheritance
Windows.UI.Xaml.Markup.MarkupExtension
OnDeviceExtension

Examples

The next TextBlock will show the text 'Hello' on desktop computers, 'World' on Xbox and 'Hi' on all other devices

Constructors

OnDeviceExtension()

Properties

Default

Gets or sets the default value for this property

Desktop

Gets or sets a value for this property on Desktop

Holographic

Gets or sets a value for this property on Holographic

IoT

Gets or sets a value for this property on IoT

Team

Gets or sets a value for this property on Team

Xbox

Gets or sets a value for this property on Xbox

Methods

ProvideValue()

Returns an object value for the current DeviceFamily, Default is used when it is not set.

Applies to