title | author | description | keywords |
---|---|---|---|
OnDeviceExtension |
sonnemaf |
The OnDevice markup extension allows you to customize UI appearance on a per-DeviceFamily basis. |
windows 10, uwp, uwp community toolkit, uwp toolkit, device family, markup extension, XAML, markup |
The OnDeviceExtension
type allows you to customize UI appearance on a per-DeviceFamily basis. It is inspired on the OnPlatform markup extensions from Xamarin.Forms 3.2
Platform APIs:
OnDeviceExtension
Here is how the property can be used in XAML:
<TextBlock
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
Text="{ui:OnDevice Default=Hi, Desktop=Hello, Xbox=World}"/>