Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种方法来从我创建的用户控件中的按钮关闭在 MainPage 中创建的弹出窗口。有什么建议么?
在 Microsoft 的 ApplicationSettings 示例中找到了一个好方法。
Popup parent = this.Parent as Popup; if (parent != null) { parent.IsOpen = false; }