Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        // 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);
        }
Ejemplo n.º 3
0
 public NavigationViewModel(INavigationController controller, IWebHybrid webHybrid)
 {
     this.controller = controller;
     this.webHybrid  = webHybrid;
 }
Ejemplo n.º 4
0
 public NavigationViewModel(INavigationController controller, IWebHybrid webHybrid)
 {
     this.controller = controller;
     this.webHybrid = webHybrid;
 }