Chessboard in WPF

后端 未结 5 1063
情深已故
情深已故 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 07:58

    You could do your UI in XAML or in code with the same results. I've recently started using WPF and I recommend the XAML approach. It's a bit intimidating to start with but it rapidly becomes familiar. To me, it feels like a well-conceived approach to UI design and now WinForms looks like they just slapped .NET over whatever came before.

    You can start with the drag and drop approach but if you're like me you'll be working in XAML quite quickly and using the design surface for a visual check.

    This is probably not how I would do it but if you've looked at any XML or HTML you can probably guess what this will show, even if you've never looked at any XAML before:

    
        
            
            
            
            
        
    
        
            
            
            
            
        
    
        
        
        
        
    
    

提交回复
热议问题