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.
XAML 4380587605472003482

Enregistrer un commentaire

1 commentaire

Anonyme a dit…

Can you explain for a noob how to use a top menu and use pages so you can have one main window with the top menu?

Accueil item


Join me soon

Join me soon

Endpoint Manager award

Mes articles en français

Author of Books

PowerShell GUI & WPF Group

PowerShell GUI & WPF Group

Join the FPSUGR

Join the FPSUGR