public MainWindow()
        {
            WebConfig webC = new WebConfig();

            webC.RemoteDebuggingPort = 8001;
            webC.RemoteDebuggingHost = "127.0.0.1";
            WebCore.Initialize(webC);

            InitializeComponent();

            HTMLWindow.UseINavigable = true;
            SetUpRoute(HTMLWindow.NavigationBuilder);

            var datacontext = new MVVMAwesomium.ViewModel.Example.ForNavigation.Couple();
            var my          = new MVVMAwesomium.ViewModel.Example.ForNavigation.Person()
            {
                Name     = "O Monstro",
                LastName = "Desmaisons",
                Local    = new MVVMAwesomium.ViewModel.Example.Local()
                {
                    City = "Florianopolis", Region = "SC"
                }
            };

            my.Couple       = datacontext;
            datacontext.One = my;

            HTMLWindow.NavigateAsync(datacontext);
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            SetUpRoute(HTMLWindow.NavigationBuilder);
            var datacontext = new Nav();

            HTMLWindow.NavigateAsync(datacontext).DoNotWait();
        }
示例#3
0
        public MainWindow()
        {
            InitializeComponent();
            HTMLWindow.UseINavigable = true;
            SetUpRoute(HTMLWindow.NavigationBuilder);
            var datacontext = new MVVMAwesomium.ViewModel.Example.ForNavigation.Couple();
            var my          = new MVVMAwesomium.ViewModel.Example.ForNavigation.Person()
            {
                Name     = "O Monstro",
                LastName = "Desmaisons",
                Local    = new MVVMAwesomium.ViewModel.Example.Local()
                {
                    City = "Florianopolis", Region = "SC"
                }
            };

            my.Couple       = datacontext;
            datacontext.One = my;
            HTMLWindow.NavigateAsync(datacontext);
        }
示例#4
0
        public MainWindow()
        {
            InitializeComponent();

            HTMLWindow.UseINavigable = true;
            SetUpRoute(HTMLWindow.NavigationBuilder);

            var datacontext = new Couple();
            var my          = new Person()
            {
                Name     = "O Monstro",
                LastName = "Desmaisons",
                Local    = new Local()
                {
                    City = "Florianopolis", Region = "SC"
                }
            };

            my.Couple       = datacontext;
            datacontext.One = my;

            HTMLWindow.NavigateAsync(datacontext).DoNotWait();
        }