From 51e70b706f321090e0dd0cd873cbf2894dcd9dcc Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 11 Jun 2024 13:29:00 +0200 Subject: [PATCH] Intenado usar TreeView --- MainWindow.xaml | 16 +++++++--------- MainWindow.xaml.cs | 4 ++-- 2 files changed, 9 insertions(+), 11 deletions(-) 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); }