In UWP Apps, we some times extend our main view into title bar to get rid of Windows 10 default title bar. However if you are using NavigationView under extended title bar, you will find your PaneToggleButton overlapped by the title bar. And the user won't be able to click on the upper part of the button because it is where the title bar need to respond to window drag actions.

This image shows the common problem in this scenario. The problem also exists even in Microsoft's official "XAML Control Gallery" App for it's back button. Let's see how can we fix it by a workaround.

First, the code I used to hide the Windows default title bar is very common as Microsoft official sample:

Now we need to customize the style of the PaneToggleButton. You can get a copy of the style and template of any built-in UWP controls by right click on the Blend for Visual Studio designer and choose Edit Template, Edit a Copyand name it ExtTitleBarNavigationViewStyle

Find PaneToggleButtonGridand change the Margin value to 0,32,0,8, which 32is the height of Windows 10 title bar.

Many thanks. We where test crawling our website and noticed a difference in the URLs. Now we know why :) It's already hard to keep consistency when developing applications in a team. Now even need to be more careful with selecting which UrlEncode to use by default.