I believe WPF is better for game in situations like creating buttons, textblock, label, progressbar…
I believe WPF is better for game in situations like creating buttons, textblock, label,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
WPF is a very different technological approach to graphics from XNA.
First off, it’s a retained mode API instead of an immediate mode API. This will give you less (almost no) control over how and when things are rendered when compared to XNA. It also potentially will have a higher cost in terms of performance and potentially lower responsiveness, at least with a lot of objects (when compared to a properly implemented XNA game).
That being said, WPF is much simpler to implement, especially for 2D graphics. WPF 3D can be simple, but awkward to use at times. It is much easier to handle the user interface in WPF when compared to XNA, however.
XNA also has the benefit of being cross platform (ie: Windows desktops, phone, and XBOX).