作者:php麟状 | 来源:互联网 | 2023-09-16 10:31
ImusingMonowithGTK#andamtryingtodisplayanexistingwindowasanewtabinaGTK.Notebook.
I'm using Mono with GTK# and am trying to display an existing window as a new tab in a GTK.Notebook. I'm currently re-parenting the widget to the notebook as follows:
我正在使用Mono和GTK#,我正在尝试将现有窗口显示为GTK.Notebook中的新选项卡。我正在将小部件重新托管给笔记本,如下所示:
MyWindow myWindow = new MyWindow();
myWindow.Children[0].Reparent(myNotebook)
Should I be doing this, or is there a better way to re-use an existing window so that you can display it on a tab?
我应该这样做,还是有更好的方法来重新使用现有的窗口,以便您可以在选项卡上显示它?
1 个解决方案