PowerShell & WPF: Easily build a top menu


In this post, I will explain how how to create easily a top context menu for for GUI.
To do that we will use the DockPanel and MenuItem Controls.

See below on GitHub this example.

To interact with the menu, you will just need to use the event Add_Click on your control.

See below the XAML part used to to this. I tried give the more explanation in the code.

Share this

Related Posts

Previous
Next Post »