WPF User Control Parent

后端 未结 17 1119
不知归路
不知归路 2020-11-28 02:18

I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the containing window from the UserControl.

I hav

17条回答
  •  鱼传尺愫
    2020-11-28 02:36

    This approach worked for me but it is not as specific as your question:

    App.Current.MainWindow
    

提交回复
热议问题