mirror of
https://github.com/chylex/Backup-Essentials.git
synced 2025-08-13 15:17:03 +02:00
BackupEssentials
Backup
Controls
Data
Pages
HomeSub
About.xaml
About.xaml.cs
Backup.xaml
Backup.xaml.cs
BackupDrop.xaml
BackupDrop.xaml.cs
BackupEdit.xaml
BackupEdit.xaml.cs
History.xaml
History.xaml.cs
Home.xaml
Home.xaml.cs
IPageDragDrop.cs
IPageResetUI.cs
IPageShowData.cs
IPageSwitchHandler.cs
Settings.xaml
Settings.xaml.cs
Properties
Resources
Sys
Utils
App.xaml
App.xaml.cs
AppPageManager.cs
BackupEssentials.csproj
BackupReportWindow.xaml
BackupReportWindow.xaml.cs
BackupWindow.xaml
BackupWindow.xaml.cs
MainWindow.xaml
MainWindow.xaml.cs
TestingWindow.xaml
TestingWindow.xaml.cs
.gitignore
BackupEssentials.sln
LICENSE
README.md
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>
|