In XBAP Application.Current.MainWindow
is MS.Internal.AppModel.RootBrowserWindow
.
You should only assign your page to window content like this:
...
protected override void InitializeShell()
{
base.InitializeShell();
Application.Current.MainWindow.Content = Shell;
}
...