Header_Progress.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <UserControl x:Class="SummaryModule.Controls.Header_Progress"
  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:SummaryModule.Controls"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary >
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="/UICommon;component/Resources.xaml"/>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Border BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="0.5" CornerRadius="4">
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition Width="*"/>
  21. <ColumnDefinition Width="2*"/>
  22. </Grid.ColumnDefinitions>
  23. <Border Background="#e6f4ff" CornerRadius="4,0,0,4">
  24. <TextBlock Foreground="{StaticResource ThemeColor}" FontSize="14" VerticalAlignment="Center" Margin="8,0,0,0" Text="{Binding ElementName=This, Path=Header}"/>
  25. </Border>
  26. <Border Grid.Column="1" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="0.5,0,0,0">
  27. <Grid>
  28. <ProgressBar Value="{Binding ElementName=This, Path=Value}" Maximum="{Binding ElementName=This, Path=Max}" Background="Transparent" BorderThickness="0" Foreground="{StaticResource NiceGreen}"/>
  29. <TextBlock FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center" Panel.ZIndex="1">
  30. <Run Text="{Binding ElementName=This, Path=Value}"/>
  31. <Run> / </Run>
  32. <Run Text="{Binding ElementName=This, Path=Max}"/>
  33. </TextBlock>
  34. </Grid>
  35. </Border>
  36. </Grid>
  37. </Border>
  38. </UserControl>