2019-11-09 20:20:32 +00:00
|
|
|
<UserControl
|
2019-10-30 19:39:12 +00:00
|
|
|
x:Class="Wabbajack.FilePicker"
|
|
|
|
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:icon="http://metro.mahapps.com/winfx/xaml/iconpacks"
|
|
|
|
xmlns:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
d:DesignHeight="35"
|
|
|
|
d:DesignWidth="400"
|
|
|
|
BorderBrush="{StaticResource DarkBackgroundBrush}"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox
|
|
|
|
Grid.Column="0"
|
|
|
|
Margin="0,0,-4,0"
|
2019-11-02 00:17:23 +00:00
|
|
|
VerticalContentAlignment="Center"
|
2019-10-30 19:39:12 +00:00
|
|
|
Background="{StaticResource DarkBackgroundBrush}"
|
2019-11-09 20:20:32 +00:00
|
|
|
Text="{Binding TargetPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
|
Visibility="{Binding ShowTextBoxInput}" />
|
2019-10-30 19:39:12 +00:00
|
|
|
<icon:PackIconMaterial
|
|
|
|
Margin="0,4,4,4"
|
|
|
|
Padding="0,3"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Foreground="{StaticResource WarningBrush}"
|
|
|
|
Kind="Circle"
|
2019-11-09 20:20:32 +00:00
|
|
|
ToolTip="{Binding ErrorTooltip}"
|
|
|
|
Visibility="{Binding InError, Converter={StaticResource bool2VisibilityConverter}}" />
|
2019-10-30 19:39:12 +00:00
|
|
|
<Button
|
|
|
|
Grid.Column="1"
|
2019-11-09 20:20:32 +00:00
|
|
|
Command="{Binding SetTargetPathCommand}"
|
2019-10-30 19:39:12 +00:00
|
|
|
ToolTip="Set target path">
|
|
|
|
<icon:PackIconMaterial
|
|
|
|
Width="16"
|
|
|
|
Height="12"
|
2019-11-02 00:17:23 +00:00
|
|
|
Margin="4"
|
2019-10-30 19:39:12 +00:00
|
|
|
Kind="DotsHorizontal" />
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
2019-11-09 20:20:32 +00:00
|
|
|
</UserControl>
|