Chessboard in WPF

后端 未结 5 1067
情深已故
情深已故 2021-01-03 07:33

For years I\'ve developed with Winforms, now I want to switch to WPF and make a chessboard. Unfortunately I have no idea where to start. Using WPF makes me very unsure, I\'m

5条回答
  •  伪装坚强ぢ
    2021-01-03 08:04

    An alternative to the standard grid, is the use of a UniformGrid (msdn link).

    It's probably more suited to this (in my opinion) as it will ALWAYS give you the same size cells.

    used ala:

    
        
        
        
    
    

    any of these answers will give you the results you desire.

提交回复
热议问题