Giter VIP home page Giter VIP logo

blurwindow's Introduction

BlurWindow

logo

GitHub stars All releases Github forks All issues

WPF Aero Glass Lib

The window style is located in Theme.xaml and can be modified by yourself.
This project is part of TianXiaTech

Nuget

PM>Install-Package BlurWindow -Version 3.0.0

Usage

Step 1

import xaml prefix

xmlns:blurwindow="clr-namespace:TianXiaTech;assembly=BlurWindow";

Step2

Replace <Window></Window> with <blurwindow:BlurWindow></blurwindow:BlurWindow>

Step3

Make MainWindow inherit from TianXiaTech.BlurWindow

public partial class MainWindow : TianXiaTech.BlurWindow

Step4

Specify background transparency

<Window.Background>
    <!--Specify transparency here-->
    <SolidColorBrush Color="White" Opacity=".5"/>  
 </Window.Background>

Additional

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>

partially transparent

You can also set the picture background directly

<Grid>
    <Grid.Background>
        <ImageBrush ImageSource="yasuo.jpg" Stretch="UniformToFill" Opacity=".5"/>
    </Grid.Background>
</Grid>

img background

Title foreground

        TitleForeground="Blue"

img background

Sample screenshot

Opacity 0.8

demo img

Opacity 0.5

demo img

Todo

  • Show/Hide icon
  • Show/Hide control box
  • Use WPF attached property

Thanks

Project reference https://github.com/TranslucentTB/TranslucentTB

License

MIT License.

blurwindow's People

Contributors

axiaoan avatar zhaotianff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.