Example #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();
                // Perform any additional setup after loading the view, typically from a nib.
                webView = new UIWebView(UIScreen.MainScreen.Bounds);
                View.Add(webView);

                // Intercept URL loading to handle native calls from browser
                //webView.ShouldStartLoad += HandleShouldStartLoad;

                // Render the view from the type generated from RazorView.cshtml

                //var model = App.Database.GetItems().ToList();
            var template = new MainPage(); //new RazorView() ;
                var page = template.GenerateString();
                webView.LoadHtmlString(page, NSBundle.MainBundle.BundleUrl);
        }