I have found a way to do it:
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<AcrylicBrush x:Key="MyAcrylicBrush"
BackgroundSource="HostBackdrop"
TintColor="Black"
TintOpacity="0.5"
TintLuminosityOpacity="1"
FallbackColor="#111111"
/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</Page.Resources>
By adding the above code into my <Page>
and setting <Grid>
Background like this:
<Grid Background="{ThemeResource MyAcrylicBrush}">
Where MyAcrylicBrush
is the AcrylicBrush
's x:Key
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…