Tag Info

New answers tagged


Since you're using WPF I expect you don't plan to use a lot of animation, so a better way to do this would be with a Grid: <!-- XAML --> <Grid x:Name="Board"> <Grid.RowDefinitions> <RowDefinition/> <RowDefinition/> <RowDefinition/> <RowDefinition/> <RowDefinition/> ...


I am guessing you are using System.Draw methods to draw the rectangles (I hope you are not drawing labels or something cause that would kill performance). I would make a mouse down event on the form, and then use the mouse position value to get the rectangle that was clicked depending on the width/height of them. So say the user clicks at 250,250 and the ...

Top 50 recent answers are included