如何在c#(WPF)中可视化菜单项的控件? [英] How can I visualize a control over a menuitem in c# (WPF)?

查看:417
本文介绍了如何在c#(WPF)中可视化菜单项的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个菜单,有各种级别的menuitem。在menuitem的第一级我可以看到menuitem上的每个控件,在菜单项的第二级我不能,因为可视化的菜单是一个弹出窗口而且它不是主窗口可视树的一部分,请你如何了解如何我可以解决这个问题吗?

I have a menu with various level of menuitem. In the first level of the menuitem I can visualize every control on the menuitem, on the second level of menuitem I can't because the menu visualized is a popup and it's not part of the main window visual tree, have you some idea on how can I resolve this issue?

推荐答案

这篇关于如何在c#(WPF)中可视化菜单项的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆