80 lines
2.8 KiB
XML
80 lines
2.8 KiB
XML
<Window
|
|
Title="PhotoRenamerGui"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d"
|
|
x:Class="PhotoRenamerGui.MainWindow"
|
|
x:DataType="photoRenamerGui:MainWindowViewModel"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:photoRenamerGui="clr-namespace:PhotoRenamerGui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Window.DataContext>
|
|
<photoRenamerGui:MainWindowViewModel />
|
|
</Window.DataContext>
|
|
<Grid ColumnDefinitions="Auto,*,Auto" RowDefinitions="Auto,Auto,*">
|
|
<Grid.Styles>
|
|
<Style Selector=":is(TemplatedControl)">
|
|
<Setter Property="Margin" Value="0,5" />
|
|
</Style>
|
|
</Grid.Styles>
|
|
<Label
|
|
Content="Input Folder"
|
|
Grid.Column="0"
|
|
Grid.Row="0"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center" />
|
|
<Label
|
|
Content="Output Folder"
|
|
Grid.Column="0"
|
|
Grid.Row="1"
|
|
VerticalAlignment="Center"
|
|
VerticalContentAlignment="Center" />
|
|
<TextBox
|
|
Grid.Column="1"
|
|
Grid.Row="0"
|
|
Text="{Binding InputFolder}"
|
|
Watermark="Input">
|
|
<TextBox.InnerRightContent>
|
|
<Button
|
|
Command="{Binding SelectInputFolderCommand}"
|
|
Content="..."
|
|
Margin="0,5,5,5"
|
|
VerticalAlignment="Stretch" />
|
|
</TextBox.InnerRightContent>
|
|
</TextBox>
|
|
<TextBox
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Text="{Binding OutputFolder}"
|
|
Watermark="Output">
|
|
<TextBox.InnerRightContent>
|
|
<Button
|
|
Command="{Binding SelectOutputFolderCommand}"
|
|
Content="..."
|
|
Margin="0,5,5,5"
|
|
VerticalAlignment="Stretch" />
|
|
</TextBox.InnerRightContent>
|
|
</TextBox>
|
|
|
|
|
|
<DataGrid
|
|
AutoGenerateColumns="False"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Grid.Row="2"
|
|
GridLinesVisibility="All"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding MediaFiles}">
|
|
<DataGrid.Columns>
|
|
<DataGridCheckBoxColumn Binding="{Binding IsSelected}" />
|
|
<DataGridTextColumn Binding="{Binding SourceDirectory}" Header="Source" />
|
|
<DataGridTextColumn Binding="{Binding TargetDirectory}" Header="Target" />
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
</Window>
|