private void TablaConductores_GotFocus(object sender, RoutedEventArgs e) { ConductoresViewModel VM = ((GlobalVM)this.DataContext).ConductoresVM; if (!VM.PanelRegulacionesFijo) { PanelRegulaciones.Visibility = Visibility.Collapsed; } }
public ConductoresView() { InitializeComponent(); vm = new ConductoresViewModel(); DataContext = vm; }