ProgressView.xaml 1.1 KB

1234567891011121314151617181920212223242526272829
  1. <UserControl
  2. x:Class="ShakerManger.View.ProgressView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ShakerManger.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:ShakerManger.ViewModel"
  9. d:DataContext="{d:DesignInstance {x:Type vm:ProgressViewModel}}"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. DataContext="{Binding Source={x:Static vm:ProgressViewModel.Default}}"
  13. mc:Ignorable="d">
  14. <StackPanel
  15. Width="620"
  16. HorizontalAlignment="Center"
  17. VerticalAlignment="Center"
  18. Orientation="Vertical">
  19. <ProgressBar
  20. Height="32"
  21. FontSize="24"
  22. Foreground="{StaticResource ButtonNomalColor}"
  23. Value="{Binding Progress}" />
  24. <TextBlock
  25. FontSize="24"
  26. Foreground="Black"
  27. Text="{Binding Message}" />
  28. </StackPanel>
  29. </UserControl>