Changing UWP project's Target Version from 1803 to 1809 disables NavigationView's Acrylic texture - why?

拈花ヽ惹草 提交于 2019-12-06 11:16:40

In latest version 17763, The value of NavigationViewExpandedPaneBackground change to SolidColorBrush. The following is the different between version 17134 and 17763.

17134

<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="SystemControlChromeMediumLowAcrylicWindowMediumBrush" /> 

17763

<SolidColorBrush x:Key="NavigationViewExpandedPaneBackground" Color="{StaticResource SystemChromeMediumColor}" />

If you want to implement acrylic effect, you could add the first StaticResource in your page resource like the following

<Page.Resources>
    <StaticResource  x:Key="NavigationViewExpandedPaneBackground"
                     ResourceKey="SystemControlChromeMediumLowAcrylicWindowMediumBrush"/>
</Page.Resources>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!