コード例 #1
0
        private void Switch(object args)
        {
            if (switchFlag)
            {
                this.container.Children.Add(WindowFactory.CreateElement(new View1(), new View1VM()));
            }
            else
            {
                this.container.Children.Add(WindowFactory.CreateElementFromXmal("Xmals/Xmal1.xaml", new Xmal1VM()));
            }

            switchFlag = !switchFlag;
        }