WPF Aero Glass Lib
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 3.0.0
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>
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"
- Show/Hide icon
- Show/Hide control box
- Use WPF attached property
Project reference https://github.com/TranslucentTB/TranslucentTB