PhilipRieck / WpfAppBar

WPF AppBar helper
134 stars 48 forks source link

Fixed a math error that occurs when the start menu is docked TOP or LEFT. #24

Closed TonyValenti closed 6 years ago

TonyValenti commented 6 years ago

Hi Philip, This pull request fixes errors that occur when there is already a window docked to the left of the screen or the top of the screen. Long story short, the code didn't consider that certain numbers might not be zero.

To easily reproduce the error that this fixes, dock your start Menu to the top of your screen and then tell WpfAppBar to dock to the same. When you do, you'll either get a negative size error or a bar that is not docked at the right size. This fixes that.

PhilipRieck commented 6 years ago

Thanks! It will take me a few hours before I'm at a place to publish a new nuget package, but I'll get it up soon.