public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ExemploMVVM.UI;component/View/View.xaml", System.UriKind.Relative));
     this.myViewModel = ((ExemploMVVM.UI.ViewModel.ViewModel)(this.FindName("myViewModel")));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myGrid = ((System.Windows.Controls.DataGrid)(this.FindName("myGrid")));
 }
Exemple #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ExemploMVVM.UI;component/View/View.xaml", System.UriKind.Relative));
     this.myViewModel = ((ExemploMVVM.UI.ViewModel.ViewModel)(this.FindName("myViewModel")));
     this.LayoutRoot  = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.myGrid      = ((System.Windows.Controls.DataGrid)(this.FindName("myGrid")));
 }