Add a transparent background in your PowerShell and WPF GUI
https://www.systanddeploy.com/2019/01/add-transparent-background-in-your.html
In this post I will you how to add a transparent background in your WPF RadialMenu and how to add a transparent background in your WPF and PowerShell GUI.
Three weeks ago I did a post about how to create a cool menu with PowerShell,WPF with the cool library RadialMenu, see here.
Some people asked me how to use this menu with a transparent background in order to display only the menu on your screen, as below.
See below how it looks like by default.
See below how it looks like with the transparent background.
So now let's how to do this.
How does it work ?
To add a transparent background in your WPF, add the below lines in your Window part from your XAML file:
XAML Part
To add a transparent background to the menu, it's pretty simple.
1 / In your XAML, add the below lines in the Window part.
The Window part will be as below:
2 / In my case I added a sub menu called "Move" to allow drag and move from it, as below:
PS1 Part
Allows the drag and move from the main form and the new sub menu Move using the below code:
Enregistrer un commentaire