コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            HTMLWindow.UseINavigable = true;
            SetUpRoute(HTMLWindow.NavigationBuilder);
            var datacontext = new MVVM.ViewModel.Example.ForNavigation.Couple();
            var my = new MVVM.ViewModel.Example.ForNavigation.Person()
            {
                Name = "O Monstro",
                LastName = "Desmaisons",
                Local = new MVVM.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 MVVM.ViewModel.Example.ForNavigation.Couple();
            var my          = new MVVM.ViewModel.Example.ForNavigation.Person()
            {
                Name     = "O Monstro",
                LastName = "Desmaisons",
                Local    = new MVVM.ViewModel.Example.Local()
                {
                    City = "Florianopolis", Region = "SC"
                }
            };

            my.Couple       = datacontext;
            datacontext.One = my;
            HTMLWindow.NavigateAsync(datacontext);
        }