nosbor
nosbor

Reputation: 3009

How can I do a context menu with logo on the left side

I've looking for 4 hours how can I do a context menu with logo. I mean something which looks like daemon tools context menu.

For these who dont know how it looks like: Daemon Tools Lite Context Menu

Is there any option to do it in simple way in XAML?

Upvotes: 4

Views: 289

Answers (1)

Matěj Zábský
Matěj Zábský

Reputation: 17272

You will have to adjust ContextMenu's control template.

Just copy the whole thing and and wrap this StackPanel in Grid or DockPanel to which you add the image:

<StackPanel ClipToBounds="True" Orientation="Horizontal" IsItemsHost="True" />

Once you understand and learn not to fear control templates, they are really not a big deal. No C# necessary, all is pure XAML.

Brief tutorial.

Upvotes: 5

Related Questions