2020-01-18 22:09:32 +00:00
|
|
|
<rxui:ReactiveUserControl
|
|
|
|
x:Class="Wabbajack.AuthorFilesView"
|
|
|
|
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:local="clr-namespace:Wabbajack"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:rxui="http://reactiveui.net"
|
|
|
|
d:DesignHeight="450"
|
|
|
|
d:DesignWidth="800"
|
|
|
|
x:TypeArguments="local:AuthorFilesVM"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
<Border
|
|
|
|
|
|
|
|
Visibility="{Binding AuthorFile.IsVisible}"
|
|
|
|
x:Name="AuthorFiles"
|
|
|
|
Margin="5"
|
|
|
|
Background="{StaticResource BackgroundBrush}"
|
|
|
|
BorderBrush="{StaticResource ButtonNormalBorder}"
|
|
|
|
BorderThickness="1">
|
|
|
|
<Grid Margin="10">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition></RowDefinition>
|
|
|
|
<RowDefinition></RowDefinition>
|
|
|
|
<RowDefinition></RowDefinition>
|
|
|
|
<RowDefinition></RowDefinition>
|
2020-01-29 23:41:53 +00:00
|
|
|
<RowDefinition></RowDefinition>
|
2020-01-18 22:09:32 +00:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="300"></ColumnDefinition>
|
|
|
|
<ColumnDefinition Width="300"></ColumnDefinition>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock
|
|
|
|
Grid.ColumnSpan="2"
|
|
|
|
Margin="5,0"
|
|
|
|
FontFamily="Lucida Sans"
|
|
|
|
FontSize="20"
|
|
|
|
FontWeight="Bold"
|
|
|
|
Text="File Uploader" />
|
2020-01-29 23:41:53 +00:00
|
|
|
<TextBlock Margin="5" Grid.Row="1" Grid.ColumnSpan="2" Text="{Binding AuthorFile.Picker.TargetPath}"></TextBlock>
|
2020-01-18 22:09:32 +00:00
|
|
|
<ProgressBar Margin="5" Grid.Row="2" Grid.ColumnSpan="2" Value="{Binding AuthorFile.UploadProgress, Mode=OneWay}" Minimum="0" Maximum="1"></ProgressBar>
|
2020-01-29 23:41:53 +00:00
|
|
|
<TextBlock Margin="5" Grid.Row="3" Grid.ColumnSpan="2">
|
|
|
|
<Hyperlink Command="{Binding AuthorFile.HyperlinkCommand}">
|
|
|
|
<TextBlock Text="{Binding AuthorFile.FinalUrl}"></TextBlock>
|
|
|
|
</Hyperlink>
|
|
|
|
</TextBlock>
|
|
|
|
<Button Margin="5" Grid.Row="4" Grid.Column="0" Command="{Binding AuthorFile.SelectFile, Mode=OneTime}">Select</Button>
|
|
|
|
<Button Margin="5" Grid.Row="4" Grid.Column="1" Command="{Binding AuthorFile.Upload}">Upload</Button>
|
2020-01-18 22:09:32 +00:00
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</rxui:ReactiveUserControl>
|