Moving UIElements around in Metro

I'm playing with some code for the, and since I had to dig some of this out, I thought maybe others might be interested. Was just thinking that ratting through documentation and trying to make stuff work is very reminiscent of WPF/E back in... holy crap... December 2006... doesn't seem like 5 years ago!

Where to start

I figured the easiest thing to do would be to put a circle on the screen and move it around. This has *got* to be easier than drag/drop, right?

Well yes it is, but as with most things you gotta figure out where to poke it to make it work, and of course I got involved in other stuff so I made it a bit tougher than I needed. I called this "Application3", and it's like the except I'm not doing a snap pane on this one.

This article is part of the GWB Archives. Original Author: Dave Campbell

New on Geeks with Blogs