PhilipRieck / WpfAppBar

WPF AppBar helper
133 stars 48 forks source link

Fixed System.ArgumentException when docking to bottom of screen #8

Closed abluescarab closed 9 years ago

abluescarab commented 9 years ago

Sorry for the second pull request, but I was browsing through your issues and noticed someone said they had a problem with docking to the bottom. I tried it myself and got a System.ArgumentException error saying that my width/height or top/left values were negative. To fix this, I replaced PrimaryScreenWidth and PrimaryScreenHeight with WorkArea.Width and WorkArea.Height to get the work area of the screen (screen size minus the taskbar and other appbar applications).

I sort of messed up your assembly versions, though.. I have no idea what version the software is now.

PhilipRieck commented 9 years ago

Sorry for the delay - summer and vacation, all that.

I pulled this in, and have pushed a new NuGet package to the gallery as well (version 1.2.0) https://www.nuget.org/packages/WpfAppBar/