WPF Aero Glass Lib
Only Windows 10 and Windows 11(before 22H2) are supported
Support Windows 10 and Windows 11
The window style is located in Theme.xaml and can be modified by yourself.
This project is part of TianXiaTech
PM>Install-Package BlurWindow -Version 7.0.1
import xaml prefix
xmlns:blurwindow="clr-namespace:TianXiaTech;assembly=BlurWindow";
Replace <Window></Window> with <blurwindow:BlurWindow></blurwindow:BlurWindow>
Make MainWindow inherit from TianXiaTech.BlurWindow
public partial class MainWindow : TianXiaTech.BlurWindow
Specify background transparency
<Window.Background>
<!--Specify transparency here-->
<SolidColorBrush Color="White" Opacity=".5"/>
</Window.Background>
If OS Version is Windows 11(greater than 22H2), the following additional properties need to be specified
<!--Specify acrylic transparency-->
AcrylicOpacity="128"
You can set the window to be partially transparent, like below
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="3*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<Grid.Background>
<SolidColorBrush Color="MediumPurple" Opacity=".5"/>
</Grid.Background>
</Grid>
<Grid Grid.Column="1" Background="White"/>
</Grid>
You can also set the picture background directly
<Grid>
<Grid.Background>
<ImageBrush ImageSource="yasuo.jpg" Stretch="UniformToFill" Opacity=".5"/>
</Grid.Background>
</Grid>
Title foreground
TitleForeground="Blue"
ControlBox Visibility
ControlBoxVisibility="Visibility.Collapsed"
Icon Visibility
IconVisibility="Visibility.Collapsed"
Title Visibility
TitleVisibility="Visibility.Collapsed"
IsEnable ContextMenu
IsEnableContextMenu="true"
ControlBox Button Visibility
MinimizeVisibility = Visibility.Collapsed
MaximizeVisibility = Visibility.Collapsed
CloseVisibility = Visibility.Collapsed
ContentSpan
ContentSpan = "true"
- Use WPF attached property
Project reference https://github.com/TranslucentTB/TranslucentTB and https://github.com/riverar/sample-win32-acrylicblur