// Detect if browser hosted if (BrowserInteropHelper.IsBrowserHosted) { // Note: can only inspect BrowserInteropHelper.Source property if page is browser-hosted. this.dataTextBlock.Text ="Is Browser Hosted: "+ BrowserInteropHelper.Source.ToString(); } else { this.dataTextBlock.Text ="Is not browser hosted"; }