コード例 #1
0
        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();
            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);

        }
コード例 #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()
        {
            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);
        }