private void IndexView_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
     Loaded -= IndexView_Loaded;
     #region 初始化绑定
     Controller = new IndexController(this);
     Controller.Initialize();
     DataContext = Controller;
     #endregion
 }
Exemplo n.º 2
0
 public override void MakeController()
 {
     _controller = new IndexController();
     _controller.Initialize(_model, this);
     _controller.OnViewLoaded();
 }