• <legend id='WaSRZ'><style id='WaSRZ'><dir id='WaSRZ'><q id='WaSRZ'></q></dir></style></legend>

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

        • <bdo id='WaSRZ'></bdo><ul id='WaSRZ'></ul>

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

        UWP 模态窗口

        时间:2023-09-15
          <bdo id='aH297'></bdo><ul id='aH297'></ul>

            <tbody id='aH297'></tbody>

            <legend id='aH297'><style id='aH297'><dir id='aH297'><q id='aH297'></q></dir></style></legend>
          • <i id='aH297'><tr id='aH297'><dt id='aH297'><q id='aH297'><span id='aH297'><b id='aH297'><form id='aH297'><ins id='aH297'></ins><ul id='aH297'></ul><sub id='aH297'></sub></form><legend id='aH297'></legend><bdo id='aH297'><pre id='aH297'><center id='aH297'></center></pre></bdo></b><th id='aH297'></th></span></q></dt></tr></i><div id='aH297'><tfoot id='aH297'></tfoot><dl id='aH297'><fieldset id='aH297'></fieldset></dl></div>
          • <small id='aH297'></small><noframes id='aH297'>

            <tfoot id='aH297'></tfoot>

                1. 本文介绍了UWP 模态窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在我的通用 Windows 平台应用程序 (C#) 的屏幕上显示一个模式窗口,就像添加帐户时的标准邮件应用程序一样.或者当您在应用中登录服务(如 facebook)时.

                  带有模式窗口的 Windows 邮件应用程序:

                  你可以移动这个窗口,但它不在任务栏中,它是模态的.

                  有人知道怎么做吗?它不应该那么难,但我找不到任何关于它的东西.

                  解决方案

                  正如@Daniel Meixner 所说,添加此邮件应用程序的帐户交互是调用另一个应用程序可能与

                  如果我们使用

                  添加帐户的过程是这样的:

                  它们在不同的进程中,具有不同的包名.

                  所以我创建了两个应用程序并使用 LaunchForResult 在这些应用程序之间进行通信,它们的作用就像系统的邮件应用程序一样.

                  如果你只是想启动系统的添加账户"应用,可以参考官方的UserDataAccountManager 示例.

                  I want to show a modal window on the screen in my Universal Windows Platform app (C#), just like the standard Mail-app does when you add an account. Or when you're signing in to a service (like facebook) in an app.

                  Windows mail app with modal window:

                  You can move this window around, but it's not in the taskbar and it is modal.

                  Does anyone know how to do this? It shouldn't be so hard but i can't find anything about it.

                  解决方案

                  As @Daniel Meixner said, adding account interaction of this Mail app is calling another app possible with LaunchForResults.

                  Using Task Manager of system, you can see that, when you launch this Mail app, it starts a process with the app's name "Mail", and when you add an account from this app, it starts another process with the app's name "Email and accounts".

                  If we use the Process Explorer to check on these processes, the Mail app's process is this:

                  and the add account process is this:

                  They are in different processes and have different package names.

                  So I created two apps and use LaunchForResult for communication between these apps, they act just like the Mail app of system.

                  If you just want to launch the system's "add account" app, you can refer to the official UserDataAccountManager sample.

                  这篇关于UWP 模态窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:以编程方式提供文件路径作为“Microsoft Print to PDF"打印机的输入文件 下一篇:如何在 Windows 10 通用应用程序中使用 isTypePresent 检测相机是否可用

                  相关文章

                  <legend id='WRRME'><style id='WRRME'><dir id='WRRME'><q id='WRRME'></q></dir></style></legend>

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

                    1. <small id='WRRME'></small><noframes id='WRRME'>