OnDeviceExtension

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}"/>