mac下无法创建多窗口页面
- Dominant language
- No language data
- Stars
- 282
- Forks
- 265
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 19
Description
### Type of issue
Code doesn't work
### Description
var editPage = new EditPopupPage();
editPage.Initialize(_currentConfig.EditFields, editData, isEdit ? "编辑" : "新增");
Debug.Print($"1OpenWindow{Application.Current.Windows.Count}");
Window secondWindow = new Window(editPage);
Application.Current.OpenWindow(secondWindow);
//Application.Current?.ActivateWindow(secondWindow);
Debug.Print($"2OpenWindow{Application.Current.Windows.Count}");
运行程序日志如下
1OpenWindow1
2OpenWindow1
窗口数并没有增加,也没有报错
### Page URL
https://learn.microsoft.com/zh-cn/dotnet/maui/user-interface/controls/window?view=net-maui-10.0
### Content source URL
https://github.com/dotnet/docs-maui/blob/main/docs/user-interface/controls/window.md
### Document Version Independent Id
36572dea-ae73-4dbb-913f-6cf0152de382
### Platform Id
664ddda4-2743-5a9f-0fa4-3217bf64b7c9
### Article author
@davidortinau
### Metadata
* ID: 36572dea-ae73-4dbb-913f-6cf0152de382
* PlatformId: 664ddda4-2743-5a9f-0fa4-3217bf64b7c9
* Service: **dotnet-mobile**
* Sub-service: **dotnet-maui**
[Related Issues](https://github.com/dotnet/docs-maui/issues?q=is%3Aissue+is%3Aopen+36572dea-ae73-4dbb-913f-6cf0152de382)
Contributor guide
Assessment
This issue has not been assessed yet.