private void UserControl_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     m_model = getModel();
     if (m_model != null)
     {
         m_model.PropertyChanged += m_model_PropertyChanged;
     }
 }
 //
 public MainWindow()
 {
     InitializeComponent();
     m_model = new MainModelView(ServiceLocator.GetInstance(),PageLocator.GetInstance(),this.NavigationService);
     this.DataContext = m_model;
 }
Ejemplo n.º 3
0
 public OrdModelView(MainModelView pMain)
     : base(pMain.ServiceLocator, pMain.PageLocator, pMain.NavigationService)
 {
     m_main = pMain;
     m_main.PropertyChanged += m_main_PropertyChanged;
 }