123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="BaseStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <!-- 进度条 4812 -->
- <LinearGradientBrush x:Key="ProgressBarIndicatorAnimatedFill" StartPoint="0,0" EndPoint="1,0">
- <GradientStop Offset="0" Color="#00FFFFFF" />
- <GradientStop Offset="0.4" Color="#60FFFFFF" />
- <GradientStop Offset="0.6" Color="#60FFFFFF" />
- <GradientStop Offset="1" Color="#00FFFFFF" />
- </LinearGradientBrush>
- <Style x:Key="ProgressBarBaseStyle" TargetType="{x:Type ProgressBar}">
- <Setter Property="Height" Value="20" />
- <Setter Property="Background" Value="#f5f5f5" />
- <Setter Property="BorderBrush" Value="#19000000" />
- <Setter Property="BorderThickness" Value="1,1,1,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <Grid>
- <Border
- x:Name="TemplateRoot"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4">
- <Border.Effect>
- <BlurEffect Radius="2" />
- </Border.Effect>
- </Border>
- <Grid Margin="{TemplateBinding BorderThickness}">
- <Rectangle x:Name="PART_Track" />
- <Grid HorizontalAlignment="Left">
- <Decorator
- x:Name="PART_Indicator"
- Margin="0,-1,0,0"
- HorizontalAlignment="Left">
- <Border
- x:Name="Animation"
- Background="{TemplateBinding Foreground}"
- ClipToBounds="true"
- CornerRadius="4">
- <Rectangle
- x:Name="PART_GlowRect"
- Width="100"
- Margin="-100,0,0,0"
- HorizontalAlignment="Left"
- Fill="{StaticResource ProgressBarIndicatorAnimatedFill}" />
- </Border>
- </Decorator>
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Label
- Content="{TemplateBinding Value}"
- FontSize="{DynamicResource SmallFontSize}"
- Foreground="#fff" />
- <Label
- Content="%"
- FontSize="{DynamicResource SmallFontSize}"
- Foreground="#fff" />
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter TargetName="TemplateRoot" Property="LayoutTransform">
- <Setter.Value>
- <RotateTransform Angle="-90" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style
- x:Key="progress-bar"
- BasedOn="{StaticResource ProgressBarBaseStyle}"
- TargetType="{x:Type ProgressBar}">
- <Setter Property="Foreground" Value="{DynamicResource Background-Primary1}" />
- </Style>
- <Style
- x:Key="progress-bar-success"
- BasedOn="{StaticResource ProgressBarBaseStyle}"
- TargetType="{x:Type ProgressBar}">
- <Setter Property="Foreground" Value="{DynamicResource Background-Success1}" />
- </Style>
- <Style
- x:Key="progress-bar-info"
- BasedOn="{StaticResource ProgressBarBaseStyle}"
- TargetType="{x:Type ProgressBar}">
- <Setter Property="Foreground" Value="{DynamicResource Background-Info1}" />
- </Style>
- <Style
- x:Key="progress-bar-warning"
- BasedOn="{StaticResource ProgressBarBaseStyle}"
- TargetType="{x:Type ProgressBar}">
- <Setter Property="Foreground" Value="{DynamicResource Background-Warning1}" />
- </Style>
- <Style
- x:Key="progress-bar-danger"
- BasedOn="{StaticResource ProgressBarBaseStyle}"
- TargetType="{x:Type ProgressBar}">
- <Setter Property="Foreground" Value="{DynamicResource Background-Danger1}" />
- </Style>
- <Style x:Key="MicAensitivityProgressBarStyle" TargetType="{x:Type ProgressBar}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ProgressBar}">
- <Grid Width="{TemplateBinding Width}">
- <Border x:Name="PART_Track" Background="Transparent">
- <ItemsControl>
- <ItemsControl.Items>
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#FFC4C4C4" />
- </ItemsControl.Items>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </Border>
- <Border
- x:Name="PART_Indicator"
- Margin="0,-1,0,1"
- HorizontalAlignment="Left">
- <ItemsControl>
- <ItemsControl.Items>
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- <Border
- Width="4"
- Height="30"
- Margin="1"
- Background="#31b0d5" />
- </ItemsControl.Items>
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- </ItemsControl>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|