| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <UserControl x:Class="OHV.Module.Interactivity.PopUp.BusyBar"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- Height="250" Width="450"
- >
- <prism:Dialog.WindowStyle>
- <Style TargetType="Window">
- <Setter Property="Topmost" Value="True"/>
- <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="AllowsTransparency" Value="True"/>
- <Setter Property="ResizeMode" Value="NoResize"/>
- <Setter Property="WindowStyle" Value="None"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
- <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
- <!--<Style.Triggers>
- <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
- <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
- </Trigger>
- </Style.Triggers>-->
- </Style>
- </prism:Dialog.WindowStyle>
- <Border BorderBrush="DodgerBlue" BorderThickness="1" CornerRadius="20" Background="#263238" Height="250" Width="450" Focusable="True">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height=".7*"/>
- <!--<RowDefinition Height="*"/>-->
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
- <TextBlock Text="{Binding Title, FallbackValue=Title}" FontSize="30" HorizontalAlignment="Center" Foreground="Orange"/>
- <TextBlock Text="{Binding Text, FallbackValue=Text}" FontSize="20" HorizontalAlignment="Center" Foreground="Orange"/>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <Border BorderBrush="Gray" BorderThickness="1"/>
- <ProgressBar Style="{StaticResource MaterialDesignCircularProgressBar}" Background="{x:Null}"
- VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
- Foreground="DodgerBlue" Value="{Binding ProgressValue, FallbackValue=0}" IsIndeterminate="False" Height="50" Width="50" BorderBrush="DodgerBlue"/>
- </Grid>
- <!--<Grid Grid.Row="2"></Grid>-->
- </Grid>
- </Border>
- </UserControl>
|