MainWindow.xaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Window x:Class="FileUploadWpf.MainWindow"
  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:FileUploadWpf"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="350" Width="525" Background="LightGray" BorderBrush="Gray" BorderThickness="2" Loaded="Form1_Load">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition />
  12. <RowDefinition Height="60" />
  13. <RowDefinition Height="60" />
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="*" />
  17. <ColumnDefinition Width="Auto" />
  18. </Grid.ColumnDefinitions>
  19. <Border Grid.ColumnSpan="2" BorderBrush="Gray" BorderThickness="0,0,0,2">
  20. <ListView x:Name="lb_log" Background="Transparent" BorderThickness="0">
  21. </ListView>
  22. </Border>
  23. <Border Grid.Row="1">
  24. <TextBlock x:Name="tb_filePath" Text="" Margin="5" FontSize="16" />
  25. </Border>
  26. <Border Grid.Row="1" Grid.Column="1">
  27. <TextBlock x:Name="tb_uploadData" Text="" Margin="5" FontSize="16" />
  28. </Border>
  29. <Border BorderBrush="Gray" BorderThickness="0,2,0,0" Grid.ColumnSpan="2" Grid.Row="2">
  30. <WrapPanel VerticalAlignment="Center" HorizontalAlignment="Right">
  31. <Button Width="80" Height="40" Content="上传" FontSize="18" Margin="20,0" Click="button1_Click" />
  32. </WrapPanel>
  33. </Border>
  34. </Grid>
  35. </Window>