public Pilot() { PilotVM pilotVM; InitializeComponent(); DataContext = pilotVM = new PilotVM(); }
public PilotView() { this.InitializeComponent(); ViewModel = new PilotVM(); ListContainer.ItemsSource = ViewModel.Pilots; this.Loaded += OnLoaded; }
public MainWindow() { InitializeComponent(); this.vm = new PilotVM(); this.DataContext = vm; }