mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2024-10-17 08:42:44 +02:00
71 lines
4.1 KiB
XML
71 lines
4.1 KiB
XML
<Page x:Class="BackupEssentials.Pages.BackupEdit"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:system="clr-namespace:BackupEssentials.Sys"
|
|
xmlns:backup="clr-namespace:BackupEssentials.Backup"
|
|
mc:Ignorable="d"
|
|
d:DesignWidth="{StaticResource PageWidth}" d:DesignHeight="{StaticResource PageHeight}" Background="{StaticResource PageBackground}"
|
|
Title="Backup Locations - Edit">
|
|
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style x:Key="TitleLabel" TargetType="Label">
|
|
<Setter Property="Foreground" Value="#FFDDDDDD"/>
|
|
<Setter Property="Margin" Value="0,0,10,0"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
</Style>
|
|
</Grid.Resources>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="18"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid VerticalAlignment="Center" Margin="32,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*"/>
|
|
<ColumnDefinition Width="2*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<DockPanel LastChildFill="True">
|
|
<Label Content="{Binding Language[BackupEdit.Label.Name], Source={x:Static system:Settings.Default}}" Style="{StaticResource TitleLabel}" VerticalAlignment="Center"/>
|
|
<TextBox x:Name="TextBoxName" Text="{Binding Path=Name}" Padding="2,0" TextWrapping="NoWrap" Style="{StaticResource TextBoxStyleDefault}"/>
|
|
</DockPanel>
|
|
|
|
<DockPanel Grid.Column="1" Margin="8,0,0,0" LastChildFill="True">
|
|
<Label Content="{Binding Language[BackupEdit.Label.Directory], Source={x:Static system:Settings.Default}}" Style="{StaticResource TitleLabel}"/>
|
|
<Button DockPanel.Dock="Right" x:Name="ButtonSelectDirectory" Content="{Binding Language[BackupEdit.Button.DirectorySelect], Source={x:Static system:Settings.Default}}" FontSize="16" Template="{StaticResource ButtonStyleDefault}" Margin="8,0,0,0" Click="ClickSelectDirectory"/>
|
|
<TextBox x:Name="TextBoxDirectory" Text="{Binding Path=Directory}" Padding="2,0" TextWrapping="NoWrap" Style="{StaticResource TextBoxStyleDefault}"/>
|
|
</DockPanel>
|
|
</Grid>
|
|
|
|
<WrapPanel Grid.Row="1" VerticalAlignment="Center" Margin="32,0" HorizontalAlignment="Right" DataContext="{Binding Source={x:Static system:Settings.Default}}">
|
|
<WrapPanel.Resources>
|
|
<Style TargetType="Button">
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
</Style>
|
|
</WrapPanel.Resources>
|
|
|
|
<Button x:Name="ButtonSave" Content="{Binding Language[BackupEdit.Button.Save]}" FontSize="16" Template="{StaticResource ButtonStyleDefault}" Margin="0,0,10,0" Click="ClickSave"/>
|
|
<Button x:Name="ButtonCancel" Content="{Binding Language[BackupEdit.Button.Cancel]}" FontSize="16" Template="{StaticResource ButtonStyleRedDefault}" Click="ClickCancel"/>
|
|
</WrapPanel>
|
|
|
|
<DockPanel Grid.Row="2" Margin="32,0">
|
|
<Expander Header="{Binding Language[BackupEdit.Label.AdvancedSettings], Source={x:Static system:Settings.Default}}" Foreground="#FFDDDDDD" FontSize="14" Style="{DynamicResource ExpanderStyleDefault}">
|
|
<Grid x:Name="AdvancedOptionsContainer" Grid.Row="3" Margin="24,8">
|
|
|
|
</Grid>
|
|
</Expander>
|
|
</DockPanel>
|
|
|
|
<TextBlock Text="{Binding Language[BackupEdit.Hint], Source={x:Static system:Settings.Default}}" HorizontalAlignment="Left" Grid.Row="3" VerticalAlignment="Center" Foreground="#FFB9B9B9" Margin="12,0,0,0"/>
|
|
</Grid>
|
|
</Page>
|