WinBlur is a C#, VB .NET Library that allows developers to use modern blur types on their forms.
Getting Started: 3 easy steps to use WinBlur.
- Step 1. Install
WinBlur
from NuGET.
Install-Package WinBlur
- Step 2. Head over to your form, and import the packages needed.
using WinBlur;
using static WinBlur.UI;
- Step 3. A) If you are not using the
None
FormBorderStyle, then create theForm_Load
event, or head over to the form constructor and add the following code:
// cntrl: The form/control you are targetting.
// blurType: The blur type for the form/control.
// designMode: The design mode (or style) for the form/control.
// this.BackColor = Color.Black;
// The code on top is recommended, but is not necessary.
// In case the code below doesn't work by itself, please change the control/form BackColor to Black/White.
SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: true);
- Step 3. B) If you are using the
None
FormBorderStyle, then create theForm_Load
event, or head over to the form constructor and add the following code:
// cntrl: The form/control you are targetting.
// blurType: The blur type for the form/control.
// designMode: The design mode (or style) for the form/control.
// this.BackColor = Color.Black;
// The code on top is recommended, but is not necessary.
// In case the code below doesn't work by itself, please change the control/form BackColor to Black/White.
SetBlurStyle(frm: this, blurType: BlurType.Acrylic, designMode: Mode.DarkMode, showWindowsTitle: false);
-
⚠️ WARNING: If you are using theNone
FormBorderStyle, then create theForm_Shown
event instead, and add the same code that is shown on top of this text. -
📝NOTE: Using WinBlur on Controls is currently most likely not going to work, so this mainly just supports Forms right now.
For DarkMode
, please set your Form.BackColor
to a Dark color, preferrably Color.Black
.
For LightMode
, please set your Form.BackColor
to a Light color/White color, preferrably Color.White
.
There you have it! Your project now supports & uses WinBlur.
This project is open-source, and free to use commercially & personally. I would not like any credit for this, enjoy using it.
If you want to contribute, feel free to make a pull request and merge it.