I know how to create a rectangle in the WPF xaml, then edit it in the c sharp file. What I’m interested in is creating the rectangle in the c sharp file, displaying it on the WPF canvas, then being able to manipulate it. My friends and I are working on a game, and we’d like to be able to generate new objects from the source code on the fly. Any help would be great 🙂
Share
It’s easy. Provided that you have a Canvas like in this XAML
you can play around with code like this: