1
<Page
x:Class="DOCompare.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<SplitView DisplayMode="CompactInline" IsPaneOpen="False" x:Name="HomeSplit" CompactPaneLength="52" OpenPaneLength="360" Style="{StaticResource SystemControlAcrylicWindowBrush}">
    <SplitView.Pane>
    ...
    </SplitView.Pane>
    <SplitView.Content>
    ...
    </SplitView.Content>
</SplitView>

这是我的 XAML 代码,我想在我的拆分视图中应用亚克力画笔(背景亚克力,不在应用程序中)。但它不起作用。

什么是问题?

4

1 回答 1

4

我解决了!

PaneBackground="{StaticResource SystemControlAcrylicWindowBrush}"

我们应该使用 above 而不是 style

于 2018-02-10T06:58:34.893 回答