Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF controls needed to build chess application

Tags:

c#

wpf

I am trying to build a chess application. I have the backend logic in place (almost). But I havent worked much on UIs. I plan to use C# and I hear WPF is the way to go.

Could you please give me pointers as to how to build the UI interface and the various coins over it? Will I have to build some kind of controls for the coins? Also, what control should I use to develop the board?

like image 383
Aadith Ramia Avatar asked Dec 13 '13 06:12

Aadith Ramia


1 Answers

If it's 2D then Canvas is the obvious way to go, you can place Images on it or anything else you like and move them to arbitrary positions. You can also wrap it up in a Viewbox so that it, and everything in it, scales automatically to the parent window.

In general you shouldn't need to make any user controls. WPF places much less emphasis on user controls, in general you only need them when you need to add very specific behavior not covered by the existing framework that needs to be duplicated. That's unlikely to be the case in a chess application.

like image 187
Mark Feldman Avatar answered Oct 20 '22 19:10

Mark Feldman