开发者

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:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜