开发者

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

开发者 https://www.devze.com 2023-04-10 06:30 出处:网络
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.

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:

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

Is there any option to do it in simple way 开发者_运维问答in XAML?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消