UWP app with and without Fluent Design System (dependent on the version of Windows 10)

399 Views Asked by At

I am develop a new UWP app and I want this new app to have a Fluent Design System in the supported versions (Creators Update and Fall Creators Update), but I also want previous versions of Windows 10 also to have access to the app but without the Fluent Design System.

It is possible? If yes, how?

Is there any tutorial to explain this?

1

There are 1 best solutions below

4
On

Since you are targeting a minimum version older than Creators Update, you cannot utilize the recently introduced Conditional XAML.

You're essentially limited to implement Version adaptive code , which has the drawback of allowing the setting of certain properties/ instantiation objects depending on the OS version, only in code behind, rather than in markup.