diff --git a/MainWindow.xaml b/MainWindow.xaml index 7f24ad1..8e33b0e 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -204,12 +204,10 @@ - - - - + + + - - - + + + e) { //PanelEdicion.Children.Clear(); // Limpiar el panel existente UserControlFactory.LimpiarPropiedadesosDatos(PanelEdicion); - if (e.AddedItems.Count > 0 && e.AddedItems[0] is osBase selectedObject) + if (e.NewValue != null && e.NewValue is osBase selectedObject) CargarPropiedadesosDatos(selectedObject); }