DownloadImageView.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl x:Class="DownloadImagesTool.DownloadImageView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:DownloadImagesTool"
  7. mc:Ignorable="d">
  8. <Grid>
  9. <StackPanel>
  10. <GroupBox Header="" Margin="5">
  11. <Grid Margin="2">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="30"></RowDefinition>
  14. <RowDefinition Height="30"></RowDefinition>
  15. <RowDefinition Height="*"></RowDefinition>
  16. <RowDefinition Height="*"></RowDefinition>
  17. <RowDefinition Height="*"></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="180" />
  21. <ColumnDefinition Width="*" />
  22. </Grid.ColumnDefinitions>
  23. <Label Grid.Row="0" Grid.Column="0" Content="服务器地址" />
  24. <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding ServerAddress}"/>
  25. <Label Grid.Row="1" Grid.Column="0" Content="用户名" />
  26. <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding UserNames}"/>
  27. <Button Grid.Row="2" Grid.Column="1" Content="开始下载图片" Command="{Binding DownloadImageCommand}" />
  28. <Label Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Content="{Binding QueueCount}" />
  29. <TextBox Grid.Row="4" Grid.Column="0" Height="150" Grid.ColumnSpan="2" Text="{Binding Logs}" />
  30. </Grid>
  31. </GroupBox>
  32. </StackPanel>
  33. </Grid>
  34. </UserControl>