WPF DPI auto zoom

Rebased on master. I think. Kind of not used to all this Git stuff yet.