//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 }
public Window_Datapath() { InitializeComponent(); Data = new DataPathViewModel(); this.DataContext = Data; }