简体   繁体   English

WinUi3 显示另一个窗口

[英]WinUi3 display another windows

If you use another Window on WinUi3, you will get an Error.如果你在 WinUi3 上使用另一个窗口,你会得到一个错误。 Do you know how now?你现在知道怎么样了吗?

错误 图片

Creating new windows is currently not supported in the stable release (version 0.8.2) of WinUI3. WinUI3 的稳定版本(0.8.2 版)目前不支持创建新窗口。

If you install the latest release of the experimental channel (version 1.0.0-experimental1), you can however create and display new windows like this:如果您安装了最新版本的实验频道(版本 1.0.0-experimental1),您可以像这样创建和显示新窗口:

var win = new Window();
win.Activate();

How to open a new Window in WinUI 3 for Desktop 如何在 WinUI 3 for Desktop 中打开一个新窗口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM