diff --git a/PopUps/LibraryWindow.xaml b/PopUps/LibraryWindow.xaml
index 8ba4467..42be9cc 100644
--- a/PopUps/LibraryWindow.xaml
+++ b/PopUps/LibraryWindow.xaml
@@ -5,9 +5,47 @@
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:local="clr-namespace:CtrEditor.PopUps"
xmlns:ObjetosSim="clr-namespace:CtrEditor.ObjetosSim"
- Title="Biblioteca de Objetos Simulables" Height="700" Width="1200"
- WindowStartupLocation="CenterOwner" ResizeMode="CanResize"
- Loaded="Window_Loaded">
+ xmlns:ctr="clr-namespace:CtrEditor"
+ Title="Biblioteca de Objetos Simulables"
+ Height="{Binding Source={x:Static ctr:EstadoPersistente.Instance}, Path=LibraryWindow.Height, Mode=TwoWay}"
+ Width="{Binding Source={x:Static ctr:EstadoPersistente.Instance}, Path=LibraryWindow.Width, Mode=TwoWay}"
+ Left="{Binding Source={x:Static ctr:EstadoPersistente.Instance}, Path=LibraryWindow.Left, Mode=TwoWay}"
+ Top="{Binding Source={x:Static ctr:EstadoPersistente.Instance}, Path=LibraryWindow.Top, Mode=TwoWay}"
+ WindowStartupLocation="Manual" ResizeMode="CanResize"
+ Loaded="Window_Loaded" Closing="Window_Closing">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -17,16 +55,16 @@
-
+
-
+
-
+
-
+
@@ -34,16 +72,45 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
@@ -51,35 +118,25 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
-
+
@@ -88,44 +145,44 @@
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/PopUps/LibraryWindow.xaml.cs b/PopUps/LibraryWindow.xaml.cs
index d5f1c00..d1ad6fd 100644
--- a/PopUps/LibraryWindow.xaml.cs
+++ b/PopUps/LibraryWindow.xaml.cs
@@ -1,6 +1,9 @@
using System.Windows;
using System.Windows.Controls;
using CtrEditor.ObjetosSim;
+using System.ComponentModel;
+using System.Globalization;
+using System.Windows.Data;
namespace CtrEditor.PopUps
{
@@ -12,13 +15,57 @@ namespace CtrEditor.PopUps
public LibraryWindow()
{
InitializeComponent();
+
+ // Aplicar configuraciones persistentes
+ ApplyPersistedSettings();
+
+ // Suscribirse al evento StateChanged para persistir cambios de estado
+ StateChanged += LibraryWindow_StateChanged;
}
- private void LibrariesTreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs