//private MobileServiceCollection<TodoItem, TodoItem> items; //private IMobileServiceTable<TodoItem> todoTable = App.MobileService.GetTable<TodoItem>(); public HubPage() { domain = App.Domain; streamResolver = new StreamUriWinRTResolver(); this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; }
protected override void OnNavigatedTo(NavigationEventArgs e) { // The 'Host' part of the URI for the ms-local-stream protocol needs to be a combination of the package name // and an application-defined key, which identifies the specific resolver, in this case 'MyTag'. Uri url = webView.BuildLocalStreamUri("MyTag", "index.html"); StreamUriWinRTResolver myResolver = new StreamUriWinRTResolver(); // Pass the resolver object to the navigate call. webView.NavigateToLocalStreamUri(url, myResolver); }
public ItemPage() { myStorageResolver = new StreamUriWinRTResolver(); myMemoryResolver = new MemoryStreamUriWinRTResolver(); this.InitializeComponent(); this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
private void Button_Click(object sender, RoutedEventArgs e) { // The 'Host' part of the URI for the ms-local-stream protocol needs to be a combination of the package name // and an application-defined key, which identifies the specific resolver, in this case 'MyTag'. Uri url = webview.BuildLocalStreamUri("WebViewPicture.Windows", "test.html"); StreamUriWinRTResolver myResolver = new StreamUriWinRTResolver(); // Pass the resolver object to the navigate call. webview.NavigateToLocalStreamUri(url, myResolver); }
public HubPage() { domain = App.Domain; streamResolver = new StreamUriWinRTResolver(); this.InitializeComponent(); // Hub is only supported in Portrait orientation DisplayInformation.AutoRotationPreferences = DisplayOrientations.Portrait; this.NavigationCacheMode = NavigationCacheMode.Required; this.navigationHelper = new NavigationHelper(this); this.navigationHelper.LoadState += this.NavigationHelper_LoadState; this.navigationHelper.SaveState += this.NavigationHelper_SaveState; }
public Scenario6_NavToStream() { myResolver = new StreamUriWinRTResolver(); this.InitializeComponent(); }