<i id='6M7Wq'><tr id='6M7Wq'><dt id='6M7Wq'><q id='6M7Wq'><span id='6M7Wq'><b id='6M7Wq'><form id='6M7Wq'><ins id='6M7Wq'></ins><ul id='6M7Wq'></ul><sub id='6M7Wq'></sub></form><legend id='6M7Wq'></legend><bdo id='6M7Wq'><pre id='6M7Wq'><center id='6M7Wq'></center></pre></bdo></b><th id='6M7Wq'></th></span></q></dt></tr></i><div id='6M7Wq'><tfoot id='6M7Wq'></tfoot><dl id='6M7Wq'><fieldset id='6M7Wq'></fieldset></dl></div>

    1. <legend id='6M7Wq'><style id='6M7Wq'><dir id='6M7Wq'><q id='6M7Wq'></q></dir></style></legend>

      <tfoot id='6M7Wq'></tfoot>
        <bdo id='6M7Wq'></bdo><ul id='6M7Wq'></ul>

      <small id='6M7Wq'></small><noframes id='6M7Wq'>

      1. 如何在WPF中单击菜单项时在父窗口下打开子窗口?

        How to open a child windows under parent window on menu item click in WPF?(如何在WPF中单击菜单项时在父窗口下打开子窗口?)
        • <bdo id='ZCvBG'></bdo><ul id='ZCvBG'></ul>

          <i id='ZCvBG'><tr id='ZCvBG'><dt id='ZCvBG'><q id='ZCvBG'><span id='ZCvBG'><b id='ZCvBG'><form id='ZCvBG'><ins id='ZCvBG'></ins><ul id='ZCvBG'></ul><sub id='ZCvBG'></sub></form><legend id='ZCvBG'></legend><bdo id='ZCvBG'><pre id='ZCvBG'><center id='ZCvBG'></center></pre></bdo></b><th id='ZCvBG'></th></span></q></dt></tr></i><div id='ZCvBG'><tfoot id='ZCvBG'></tfoot><dl id='ZCvBG'><fieldset id='ZCvBG'></fieldset></dl></div>

          <tfoot id='ZCvBG'></tfoot>

                <tbody id='ZCvBG'></tbody>

              1. <legend id='ZCvBG'><style id='ZCvBG'><dir id='ZCvBG'><q id='ZCvBG'></q></dir></style></legend>
                • <small id='ZCvBG'></small><noframes id='ZCvBG'>

                  本文介绍了如何在WPF中单击菜单项时在父窗口下打开子窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在用 C# 开发一个应用程序.我在 WPF 下使用 .Net.我想打开一个新的子窗口(如对话框),它应该在主窗口中打开,就在菜单栏的下方.

                  I am developing an application in C#. I'm using .Net under WPF. I want to open a new child window (like a dialog) and it should open within the main window, just below the menu bar.

                  但是,新打开的窗口只是显示一个操作系统任务栏.如何在主窗口下打开各种新窗口(如对话框)?

                  However, the newly opened windows is simply showing an OS task bar. How can I open the various new windows(like a dialog box) under the main window?

                  推荐答案

                  试试这个.

                  MyChildWindow cw = new MyChildWindow();
                  cw.ShowInTaskbar = false;
                  cw.Owner = Application.Current.MainWindow;
                  cw.Show();
                  

                  这篇关于如何在WPF中单击菜单项时在父窗口下打开子窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                      <bdo id='oQX6P'></bdo><ul id='oQX6P'></ul>

                        <tbody id='oQX6P'></tbody>
                        <tfoot id='oQX6P'></tfoot>
                        <i id='oQX6P'><tr id='oQX6P'><dt id='oQX6P'><q id='oQX6P'><span id='oQX6P'><b id='oQX6P'><form id='oQX6P'><ins id='oQX6P'></ins><ul id='oQX6P'></ul><sub id='oQX6P'></sub></form><legend id='oQX6P'></legend><bdo id='oQX6P'><pre id='oQX6P'><center id='oQX6P'></center></pre></bdo></b><th id='oQX6P'></th></span></q></dt></tr></i><div id='oQX6P'><tfoot id='oQX6P'></tfoot><dl id='oQX6P'><fieldset id='oQX6P'></fieldset></dl></div>

                        <small id='oQX6P'></small><noframes id='oQX6P'>

                      1. <legend id='oQX6P'><style id='oQX6P'><dir id='oQX6P'><q id='oQX6P'></q></dir></style></legend>