// Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); this.webHybrid = new WebHybrid(this.webView, new SimplyMobile.Text.JsonNet.JsonSerializer()); this.webView.Navigate(new Uri("HTML/ButtonClicks.html", UriKind.Relative)); this.model = new NavigationViewModel(Resolver.GetService <INavigationController>(), this.webHybrid); //this.model = new NavigationViewModel( // new NavigationDelegate<NewItemViewModel>( model => // { // }), // this.webHybrid); }
// Constructor public MainPage() { InitializeComponent(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); this.webHybrid = new WebHybrid(this.webView, new SimplyMobile.Text.JsonNet.JsonSerializer()); this.webView.Navigate(new Uri("HTML/ButtonClicks.html", UriKind.Relative)); this.model = new NavigationViewModel(Resolver.GetService<INavigationController>(), this.webHybrid); //this.model = new NavigationViewModel( // new NavigationDelegate<NewItemViewModel>( model => // { // }), // this.webHybrid); }
public NavigationViewModel(INavigationController controller, IWebHybrid webHybrid) { this.controller = controller; this.webHybrid = webHybrid; }
public NavigationViewModel(INavigationController controller, IWebHybrid webHybrid) { this.controller = controller; this.webHybrid = webHybrid; }