Tried this as well, also without luck. Using the same as 4wd: Visual Studio Express (2013 Desktop Express in my case). This is actually very handy for whipping up an interface using drag-n-drop and XAML code is automatically generated for you. The VS text editor lets you tweak whatever you like. When you are finished with the interface, remove the 'x:' part from the object names you used in your GUI and you can use the remaining code directly in PowerShell.
If you think to go this way, install Visual Studio 2015 Community edition instead. Although free to use, you are required to register your copy with Microsoft. The software doesn't indicate this is necessary, but you can only work with this tool for 30 days if you don't register. This problem and its solution is well documented on the internet, so I am sure you'll find it if you don't want to register. The full iso for VS 2015 Community is almost 6GByte in size, which was quite a burden for my 1MBit/sec connection. But the web-installer wasn't that much faster. There are a lot of requirements for installing VS and downloading whatever you are missing can add up quickly.