Is there a way to get textboxes, labels and other wpf controls in xna that supports margins, etc that flexes for window size?
相关问题
- Is it possible to restore a GraphicsDevice if some
- JFX scale image up and down to parent
- Animate a WPF Window left and right with a shake e
- Swing Font Rendering
- XNA and multitouch
相关文章
- Algorithm for maximizing coverage of rectangular a
- Is there a way to hide the new HTML5 spinbox contr
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- PropertyGrid - Possible to have a file/directory s
- Programming a touch screen application with SWING
- Can WM_NEXTDLGCTL be used with non-dialog windows?
- How can I create a small IDLE-like Python Shell in
- WPF - Adding dynamic controls to dynamically added
It is possible to embed an XNA game in a WPF form (google: XNA in WPF) if you target only Windows system. You will then have access to all the controls available in XPF for your 2D GUI.
If you also target Xbox 360 or Zune; you must make your own GUI library :(
Check out SQUID: http://www.ionstar.org/
It's a really clean, fast, and engine independent UI system. I've worked with it extensively and really enjoy using it. The download includes sample code for XNA 3.1, Truevision3D, and SlimDX.
You might give CeGui a shot.
To access the Xna version you'll need to check out the latest copy from the project's SVN and load up
CeGui-XNA.sln
.There are other options listed in this thread, but I have no idea how well any of the others work (and it probably isn't a comprehensive list anymore).
Not exactly what you're looking for, but here is an example of getting winforms GUI elements mixed in with XNA 3d content:
http://creators.xna.com/en-US/sample/winforms_series1
The official GUI systems FAQ thread in the XNA Forum: What GUI systems are there for the XNA framework?
CEGUI# is powerful, but it doesn't support the Xbox 360 (eg. its design doesn't include responding to game pad input) - a major overhaul would be required to refit it to be usable with something else than mouse and keyboard.