UProgressBar.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="TeamAAS_VP.Controls.UProgressBar"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:TeamAAS_VP.Controls"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  9. lex:LocalizeDictionary.DesignCulture="zh-CN"
  10. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  11. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  12. Background="Transparent"
  13. VerticalAlignment="Center"
  14. FontFamily="{DynamicResource DefaultFont}">
  15. <prism:Dialog.WindowStyle>
  16. <Style TargetType="Window">
  17. <Setter Property="prism:Dialog.WindowStartupLocation"
  18. Value="CenterScreen" />
  19. <Setter Property="ShowInTaskbar"
  20. Value="False" />
  21. <Setter Property="WindowStyle"
  22. Value="None" />
  23. <Setter Property="AllowsTransparency"
  24. Value="True" />
  25. <Setter Property="Background"
  26. Value="Transparent" />
  27. <Setter Property="WindowState"
  28. Value="Maximized" />
  29. <Setter Property="Topmost"
  30. Value="True" />
  31. </Style>
  32. </prism:Dialog.WindowStyle>
  33. <Border CornerRadius="20"
  34. Opacity="0.9"
  35. Margin="2,0"
  36. Width="800"
  37. Background="#fafafa"
  38. HorizontalAlignment="Center"
  39. VerticalAlignment="Center">
  40. <StackPanel Orientation="Vertical"
  41. Margin="10,5,10,5">
  42. <TextBlock x:Name="txtSubText"
  43. Text="{Binding SubTitle}"
  44. Margin="0,5,0,5"
  45. FontSize="18"
  46. TextAlignment="Center"
  47. TextWrapping="Wrap" />
  48. <ProgressBar x:Name="progress"
  49. Height="20"
  50. Maximum="{Binding Maximum}"
  51. Minimum="{Binding Minimum}"
  52. Value="{Binding Value}"
  53. IsIndeterminate="True" />
  54. <TextBlock x:Name="txtInfo"
  55. Margin="0,5,0,0"
  56. Text="{Binding Message}"
  57. FontSize="12"
  58. TextAlignment="Center"
  59. TextWrapping="Wrap" />
  60. </StackPanel>
  61. </Border>
  62. </UserControl>