Tag Archives: WPF

Programmatically adding XAML elements in C#

I had originally hard-coded the grid in my Battleships program. This resulted in very repetitive code, since there were 100 cells that contained the same basic information, but I didn’t want to get too bogged down in UI programming matters … Continue reading

Posted in Battleships, C#, Grid-based | Tagged , , | Leave a comment