更新时间:2023-12-06 13:43:40
坏消息:总之,不,这是不可能的(至少以一种直接的方式).确实可以将System.Windows.Forms控件用作游戏的画布,但不能将XNA设备用作控件的画布.
The bad news: in short, no, it is not possible (at least, in a straightforward way). While it is true that you can use a System.Windows.Forms control as a canvas for your game, you cannot use an XNA device as a canvas for your control.
好消息:已经有一些替代工具箱,可以使用XNA创建文本框,按钮和标签.
The good news: there are already some alternative toolkits that create textboxes, buttons and labels using XNA.