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.
我认为标题说明了一切:我的页面中有一个用户控件。如何获取对 UserControl 所在页面的引用?
您可以通过以下方式获得对当前页面的引用
(Window.Current.Content as Frame).Content as Page