PowerShell & WPF: Easily build a top menu

1 A+ A-

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



Learn KQL in one month

You want to support me ?

Mes articles en français

Books in French