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.
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.