diff --git a/InputDialog.cs b/InputDialog.cs index 7be725f..e554287 100644 --- a/InputDialog.cs +++ b/InputDialog.cs @@ -17,20 +17,23 @@ namespace Microsoft.Windows.Controls { Title = title, Width = 400, - Height = 150, + Height = 200, // Aumentado para dar más espacio WindowStartupLocation = WindowStartupLocation.CenterOwner, Owner = Application.Current.MainWindow, ResizeMode = ResizeMode.NoResize }; var grid = new Grid { Margin = new Thickness(10) }; - grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); - grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(10) }); - grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); + grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); // Prompt + grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(10) }); // Spacing + grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); // TextBox + grid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(20) }); // Spacing + grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); // Buttons var promptLabel = new TextBlock { Text = promptText, + TextWrapping = TextWrapping.Wrap, Margin = new Thickness(0, 0, 0, 5) }; Grid.SetRow(promptLabel, 0); @@ -38,15 +41,14 @@ namespace Microsoft.Windows.Controls var inputBox = new TextBox { Text = defaultValue, - Margin = new Thickness(0) + Height = 23 }; Grid.SetRow(inputBox, 2); var buttonPanel = new StackPanel { Orientation = Orientation.Horizontal, - HorizontalAlignment = HorizontalAlignment.Right, - Margin = new Thickness(0, 10, 0, 0) + HorizontalAlignment = HorizontalAlignment.Right }; Grid.SetRow(buttonPanel, 4); diff --git a/MainWindow.xaml b/MainWindow.xaml index c16bc83..821639d 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -3,86 +3,87 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:viewmodels="clr-namespace:DirectoryCreator.ViewModels" mc:Ignorable="d" Title="Crear Directorios Base" - Height="450" Width="700" WindowStartupLocation="CenterScreen" MinWidth="600" MinHeight="400"> + Height="550" Width="800" WindowStartupLocation="CenterScreen" MinWidth="600" MinHeight="400"> - + - + - + - + - + - + - +