<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中单击菜单项时在父窗口下打开子窗口?

        时间:2023-10-06
        • <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中单击菜单项时在父窗口下打开子窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:是否可以重载表单的 ShowDialog 方法并返回不同的结果? 下一篇:在异步方法中显示错误消息的更好方法

                  相关文章

                    <bdo id='oQX6P'></bdo><ul id='oQX6P'></ul>

                  1. <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'>

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