BusyBar.xaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.BusyBar"
  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:OHV.Module.Interactivity.PopUp"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. mc:Ignorable="d"
  11. Height="250" Width="450"
  12. >
  13. <prism:Dialog.WindowStyle>
  14. <Style TargetType="Window">
  15. <Setter Property="Topmost" Value="True"/>
  16. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  17. <Setter Property="Background" Value="Transparent"/>
  18. <Setter Property="AllowsTransparency" Value="True"/>
  19. <Setter Property="ResizeMode" Value="NoResize"/>
  20. <Setter Property="WindowStyle" Value="None"/>
  21. <Setter Property="BorderThickness" Value="1"/>
  22. <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
  23. <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
  24. <!--<Style.Triggers>
  25. <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
  26. <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
  27. </Trigger>
  28. </Style.Triggers>-->
  29. </Style>
  30. </prism:Dialog.WindowStyle>
  31. <Border BorderBrush="DodgerBlue" BorderThickness="1" CornerRadius="20" Background="#263238" Height="250" Width="450" Focusable="True">
  32. <Grid>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="*"/>
  35. <RowDefinition Height=".7*"/>
  36. <!--<RowDefinition Height="*"/>-->
  37. </Grid.RowDefinitions>
  38. <Grid Grid.Row="0">
  39. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
  40. <TextBlock Text="{Binding Title, FallbackValue=Title}" FontSize="30" HorizontalAlignment="Center" Foreground="Orange"/>
  41. <TextBlock Text="{Binding Text, FallbackValue=Text}" FontSize="20" HorizontalAlignment="Center" Foreground="Orange"/>
  42. </StackPanel>
  43. </Grid>
  44. <Grid Grid.Row="1">
  45. <Border BorderBrush="Gray" BorderThickness="1"/>
  46. <ProgressBar Style="{StaticResource MaterialDesignCircularProgressBar}" Background="{x:Null}"
  47. VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
  48. Foreground="DodgerBlue" Value="{Binding ProgressValue, FallbackValue=0}" IsIndeterminate="False" Height="50" Width="50" BorderBrush="DodgerBlue"/>
  49. </Grid>
  50. <!--<Grid Grid.Row="2"></Grid>-->
  51. </Grid>
  52. </Border>
  53. </UserControl>