OnDeviceExtension 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.
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.MarkupExtensionOnDeviceExtension
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. |