UpdateForm.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <Window x:Class="Muchinfo.MTPClient.Update.UpdateForm"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Width="500"
  5. Height="200"
  6. AllowsTransparency="True"
  7. Background="Transparent"
  8. WindowStartupLocation="CenterScreen"
  9. WindowStyle="None">
  10. <Window.Resources>
  11. <Style TargetType="{x:Type TextBlock}">
  12. <Setter Property="Foreground" Value="#ff333333" />
  13. </Style>
  14. </Window.Resources>
  15. <Border Background="#ffffffff"
  16. BorderBrush="#ff2675C4"
  17. BorderThickness="4">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="32" />
  21. <RowDefinition Height="*" />
  22. </Grid.RowDefinitions>
  23. <Grid Grid.Row="0" Background="#ff2675C4">
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="auto" />
  26. <ColumnDefinition Width="*" />
  27. <ColumnDefinition Width="auto" />
  28. </Grid.ColumnDefinitions>
  29. <Image Grid.Column="0"
  30. Width="24"
  31. Height="24"
  32. Source="{StaticResource WindowIconImageSource}" />
  33. <TextBlock Name="txt_Title"
  34. Grid.Column="1"
  35. Margin="5,0"
  36. VerticalAlignment="Center"
  37. FontSize="14"
  38. Foreground="#ffffffff" />
  39. <Button Name="bnt_Close"
  40. Grid.Column="2"
  41. Style="{StaticResource CloseButtonStyle}" />
  42. </Grid>
  43. <Grid Grid.Row="1"
  44. Grid.ColumnSpan="2"
  45. Margin="5">
  46. <Grid.RowDefinitions>
  47. <RowDefinition />
  48. <RowDefinition />
  49. <RowDefinition />
  50. </Grid.RowDefinitions>
  51. <StackPanel Grid.Row="0" Orientation="Horizontal">
  52. <ProgressBar Name="pbTotal"
  53. Width="450"
  54. Height="24" />
  55. <TextBlock x:Name="tbControl"
  56. Margin="5"
  57. VerticalAlignment="Center"
  58. Text="0%" />
  59. </StackPanel>
  60. <StackPanel Grid.Row="1" Orientation="Horizontal">
  61. <ProgressBar Name="pbCurrent"
  62. Width="450"
  63. Height="24" />
  64. <TextBlock x:Name="tbCurrentControl"
  65. Margin="5"
  66. VerticalAlignment="Center"
  67. Text="0%" />
  68. </StackPanel>
  69. <TextBlock x:Name="tbMessage"
  70. Grid.Row="2"
  71. Width="450"
  72. VerticalAlignment="Center"
  73. Text="正在准备文件信息"
  74. TextWrapping="Wrap" />
  75. </Grid>
  76. </Grid>
  77. </Border>
  78. </Window>