From c03f6970d8d410e7b18c83205537a75c80db479f Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 18 Jun 2025 02:11:38 +0200 Subject: [PATCH] =?UTF-8?q?Se=20a=C3=B1adi=C3=B3=20la=20clase=20LibraryWin?= =?UTF-8?q?dowSettings=20para=20gestionar=20la=20configuraci=C3=B3n=20de?= =?UTF-8?q?=20la=20ventana=20de=20la=20biblioteca,=20incluyendo=20propieda?= =?UTF-8?q?des=20para=20dimensiones=20y=20posici=C3=B3n.=20Se=20implement?= =?UTF-8?q?=C3=B3=20la=20persistencia=20de=20estas=20configuraciones=20al?= =?UTF-8?q?=20abrir=20y=20cerrar=20la=20ventana.=20Adem=C3=A1s,=20se=20mej?= =?UTF-8?q?or=C3=B3=20la=20interfaz=20de=20usuario=20con=20un=20TreeView?= =?UTF-8?q?=20jer=C3=A1rquico=20para=20la=20gesti=C3=B3n=20de=20biblioteca?= =?UTF-8?q?s=20y=20se=20a=C3=B1adieron=20comandos=20para=20crear=20y=20eli?= =?UTF-8?q?minar=20directorios=20de=20bibliotecas.=20Se=20implement=C3=B3?= =?UTF-8?q?=20la=20selecci=C3=B3n=20m=C3=BAltiple=20de=20objetos=20en=20la?= =?UTF-8?q?=20ventana=20de=20la=20biblioteca,=20mejorando=20la=20experienc?= =?UTF-8?q?ia=20del=20usuario=20al=20gestionar=20objetos.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PopUps/LibraryWindow.xaml | 191 +++++++++++++++-------- PopUps/LibraryWindow.xaml.cs | 98 +++++++++++- PopUps/LibraryWindowHelpers.cs | 48 ++++++ PopUps/LibraryWindowViewModel.cs | 255 +++++++++++++++++++++++++++---- estadoPersistente.cs | 21 ++- 5 files changed, 512 insertions(+), 101 deletions(-) create mode 100644 PopUps/LibraryWindowHelpers.cs 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 @@ -