//constructor
 public Window_Datapath()
 {
     InitializeComponent();
     _Data            = new DataPathViewModel(); //Creates an instance for the DataPathViewModel
     this.DataContext = _Data;                   //Sets the DataContext of the this Window to that of the DataPathViewModel
                                                 //to allow for Binding of the VM properties to the XAML
 }
Exemple #2
0
 public Window_Datapath()
 {
     InitializeComponent();
     Data             = new DataPathViewModel();
     this.DataContext = Data;
 }