A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A.
With the update of Windows 10 system and the addition of new features. The styles of UWP default controls will also be updated. Just like Acrylic Brush cannot be used in systems below 16299.
In order to be compatible with lower version systems, XAML has a function: Conditional XAML.
You can create different XAML styles for different system versions:
<Page
x:Class="ConditionalTest.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:contract5Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,5)">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<TextBlock contract5Present:Text="Hello, Conditional XAML"/>
</Grid>
</Page>
---
When you are known to be missing a resource value, you can create the resource in the project, but you cannot modify the system resource file (generic.xaml).
Thanks.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.