示例#1
0
        public LoginPage()
        {
            InitializeComponent();
            UC_Login uc_Login = new UC_Login();

            uc_Login.DataContext = new LoginViewModel();
            UC_Parent.Content    = uc_Login;
        }
        public MainWindow()
        {
            Connect = new UC_Login();
            Photo   = new UC_Photo();

            InitializeComponent();
            UC_Login my_Login = new UC_Login();

            Window_Container.Children.Add(my_Login);
            btn_Login.Visibility = Visibility.Visible;
        }