一个无需 WinUI 便可实现的 Mica 笔刷
和普通的笔刷一样
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:media="using:MicaForUWP.Media">
<media:BackdropMicaBrush
x:Key="ApplicationPageBackgroundThemeMicaElementBrush"
BackgroundSource="Backdrop"
FallbackColor="{ThemeResource SolidBackgroundFillColorBase}"
TintColor="{ThemeResource SolidBackgroundFillColorBase}" />
<media:BackdropMicaBrush
x:Key="ApplicationPageBackgroundThemeMicaWindowBrush"
BackgroundSource="HostBackdrop"
FallbackColor="{ThemeResource SolidBackgroundFillColorBase}"
TintColor="{ThemeResource SolidBackgroundFillColorBase}" />
<media:BackdropMicaBrush
x:Key="ApplicationPageBackgroundThemeMicaWallpaperBrush"
BackgroundSource="WallpaperBackdrop"
FallbackColor="{ThemeResource SolidBackgroundFillColorBase}"
TintColor="{ThemeResource SolidBackgroundFillColorBase}" />
</ResourceDictionary>