Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 857 Bytes

OnDeviceExtension.md

File metadata and controls

21 lines (15 loc) · 857 Bytes
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

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