mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
96d4150d26
* remove dotnet-tool.json because the project does not rely on any dotnet tools. * remove Directory.Build.props because the solution has only one project. * move src/SourceGit to src. It's not needed to put all sources into a subfolder of src since there's only one project.
61 lines
2.9 KiB
XML
61 lines
2.9 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
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:m="using:SourceGit.Models"
|
|
xmlns:vm="using:SourceGit.ViewModels"
|
|
xmlns:v="using:SourceGit.Views"
|
|
xmlns:c="using:SourceGit.Converters"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="SourceGit.Views.Apply"
|
|
x:DataType="vm:Apply">
|
|
<StackPanel Orientation="Vertical" Margin="8,0">
|
|
<TextBlock FontSize="18"
|
|
Classes="bold"
|
|
Text="{DynamicResource Text.Apply.Title}"/>
|
|
|
|
<Grid Margin="0,16,0,0" RowDefinitions="32,32,32" ColumnDefinitions="150,*">
|
|
<TextBlock Grid.Column="0"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
Margin="0,0,8,0"
|
|
Text="{DynamicResource Text.Apply.File}"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1"
|
|
x:Name="txtPatchFile"
|
|
Height="28"
|
|
CornerRadius="3"
|
|
Watermark="{DynamicResource Text.Apply.File.Placeholder}"
|
|
Text="{Binding PatchFile, Mode=TwoWay}"
|
|
v:AutoFocusBehaviour.IsEnabled="True">
|
|
<TextBox.InnerRightContent>
|
|
<Button Classes="icon_button" Width="30" Height="30" Click="SelectPatchFile">
|
|
<Path Data="{StaticResource Icons.Folder.Open}" Fill="{DynamicResource Brush.FG1}"/>
|
|
</Button>
|
|
</TextBox.InnerRightContent>
|
|
</TextBox>
|
|
|
|
<TextBlock Grid.Row="1" Grid.Column="0"
|
|
HorizontalAlignment="Right" VerticalAlignment="Center"
|
|
Margin="0,0,8,0"
|
|
Text="{DynamicResource Text.Apply.WS}"/>
|
|
<ComboBox Grid.Row="1" Grid.Column="1"
|
|
Height="28" Padding="8,0"
|
|
VerticalAlignment="Center" HorizontalAlignment="Stretch"
|
|
ItemsSource="{Binding WhiteSpaceModes}"
|
|
SelectedItem="{Binding SelectedWhiteSpaceMode, Mode=TwoWay}"
|
|
IsEnabled="{Binding !IgnoreWhiteSpace}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate x:DataType="{x:Type m:ApplyWhiteSpaceMode}">
|
|
<StackPanel Orientation="Horizontal" Height="20" VerticalAlignment="Center">
|
|
<TextBlock Text="{Binding Name}"/>
|
|
<TextBlock Text="{Binding Desc}" Margin="8,0,0,0" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
|
|
<CheckBox Grid.Row="2" Grid.Column="1"
|
|
Content="{DynamicResource Text.Apply.IgnoreWS}"
|
|
IsChecked="{Binding IgnoreWhiteSpace, Mode=TwoWay}"/>
|
|
</Grid>
|
|
</StackPanel>
|
|
</UserControl>
|