DirectoryCreator/MainWindow.xaml

67 lines
3.3 KiB
XML

<Window x:Class="DirectoryCreator.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
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="300" Width="500" WindowStartupLocation="CenterScreen">
<Window.Icon>
<BitmapImage UriSource="/Assets/app.png" />
</Window.Icon>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Barra superior con el tema -->
<Border Background="{DynamicResource SecondaryBackground}" Padding="5">
<DockPanel LastChildFill="True">
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="Tema Oscuro" Margin="0,0,5,0" VerticalAlignment="Center" />
<CheckBox IsChecked="{Binding IsDarkTheme}" VerticalAlignment="Center" />
</StackPanel>
</DockPanel>
</Border>
<!-- Contenido principal -->
<Grid Grid.Row="1" Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
<RowDefinition Height="Auto" />
<RowDefinition Height="20" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal">
<TextBlock Text="Configuración:" VerticalAlignment="Center" />
<ComboBox Margin="10,0" ItemsSource="{Binding AvailableConfigurations}"
SelectedItem="{Binding SelectedConfiguration}" DisplayMemberPath="Description" MinWidth="200"
VerticalContentAlignment="Center" />
<Button Content="Editar Configuraciones" Command="{Binding EditConfigurationsCommand}" />
</StackPanel>
<TextBlock Grid.Row="2" Text="Last Project:" />
<TextBlock Grid.Row="2" Margin="100,0,0,0" Text="{Binding LastProjectNumber}" />
<TextBlock Grid.Row="4" Text="Base Path:" />
<TextBlock Grid.Row="4" Margin="100,0,0,0" Text="{Binding BasePath}" />
<TextBlock Grid.Row="6" Text="New Project Name:" />
<TextBox Grid.Row="6" Margin="100,0,0,0"
Text="{Binding NewProjectName, UpdateSourceTrigger=PropertyChanged}" />
<StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Abrir Carpeta Base" Command="{Binding OpenBaseFolderCommand}" Padding="20,10"
Margin="0,0,10,0" />
<Button Content="Crear Directorios" Command="{Binding CreateDirectoriesCommand}" Padding="20,10" />
</StackPanel>
</Grid>
</Grid>
</Window>