public DriversPage() { InitializeComponent(); Loaded += DriversPage_Loaded; DataContext = new DriversViewModel(); }
private void DriversPage_Loaded(object sender, RoutedEventArgs e) { DataContext = new DriversViewModel(); }