123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:customControl="clr-namespace:PDF_Master.CustomControl"
- xmlns:convert="clr-namespace:PDF_Master.DataConvert">
- <convert:UnVisivleConvert x:Key="UnvisibleConvert" />
- <SolidColorBrush x:Key="Common.Border" Color="#FF273C62" />
- <SolidColorBrush x:Key="Common.ForGround.Blue" Color="#FF273C62" />
- <SolidColorBrush x:Key="Common.ForGround.Black" Color="#FF000000" />
- <SolidColorBrush x:Key="Button.Static.Background" Color="#273C62" />
- <SolidColorBrush x:Key="Button.Static.Border" Color="#FF273C62" />
- <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#DFE1E5" />
- <SolidColorBrush x:Key="Button.IsChecked.Background" Color="#DFE1E5" />
- <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#273C62" />
- <SolidColorBrush x:Key="Button.Pressed.Background" Color="#29477EDE" />
- <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B" />
- <SolidColorBrush x:Key="Button.Disabled.Background" Color="#273C62" />
- <SolidColorBrush x:Key="Button.Disabled.Border" Color="#273C62" />
- <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#26FFFFFF" />
- <SolidColorBrush x:Key="CloseButton.MouseOver.Foreground" Color="Red" />
- <SolidColorBrush x:Key="Disabled.ForeGround" Color="#FFE2E3E6" />
- <SolidColorBrush x:Key="BlueBtn.Mouseover.Background" Color="#31538D" />
- <SolidColorBrush x:Key="BlueBtn.Pressed.Background" Color="#1B2944" />
- <SolidColorBrush x:Key="Redact.Background" Color="#477EDE" />
-
- <Style x:Key="ToggleBtnScreenAnnotationStyle" TargetType="customControl:CustomIconToggleBtn">
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Margin" Value="4" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="customControl:CustomIconToggleBtn">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="Transparent"
- CornerRadius="4"
- SnapsToDevicePixels="true">
- <Grid
- Width="40"
- Height="40"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="border" Property="Background" Value="#e2e3e5" />
- <Setter TargetName="border" Property="BorderBrush" Value="#CED0D4" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="Background" Value="#e2e3e5" />
- <Setter TargetName="border" Property="BorderBrush" Value="#CED0D4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="#e2e3e5" />
- <Setter Property="BorderBrush" Value="#CED0D4" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ToggleBtnAnnotationStyle" TargetType="customControl:CustomIconToggleBtn">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Left" />
- <Setter Property="VerticalContentAlignment" Value="Top" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="customControl:CustomIconToggleBtn">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <Grid>
- <Grid
- Width="25"
- Height="25"
- HorizontalAlignment="Left"
- VerticalAlignment="Top">
- <Image
- x:Name="ImageIcon"
- Width="25"
- Height="25"
- Source="{Binding Icon, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="Collapsed" />
- </Grid>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ToggleBtnViewModeStyle" TargetType="customControl:CustomIconToggleBtn">
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Margin" Value="2,0,2,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="customControl:CustomIconToggleBtn">
- <Border
- Width="40"
- Height="40"
- SnapsToDevicePixels="true">
- <Grid>
- <Border
- Width="28"
- Height="28"
- x:Name="border"
- CornerRadius="4"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Image
- x:Name="ImageIcon"
- Width="20"
- Height="20"
- Source="{Binding Icon, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="Collapsed" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.MouseOver.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Pressed.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Pressed.Border}" />
- </Trigger>
- <!--<Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
- </Trigger>-->
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="{StaticResource Button.IsChecked.Background}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ToggleBtnShowAnnotViewModeStyle" TargetType="customControl:CustomIconToggleBtn">
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Margin" Value="2,0,2,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="customControl:CustomIconToggleBtn">
- <Border
- Width="40"
- Height="40"
- SnapsToDevicePixels="true">
- <Grid>
- <Border
- Width="28"
- Height="28"
- x:Name="border"
- CornerRadius="4"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Grid >
- <Grid x:Name="close" >
- <Path
- Width="20"
- Height="20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M19 4.93752C17.3793 7.129 13.9582 9.69731 9.99995 9.69731C6.04179 9.69731 2.62074 7.05211 1 4.7"
- Stroke="{StaticResource color.icon.base.brand}"
- StrokeThickness="2" />
- <Path
- Width="20"
- Height="20"
- StrokeEndLineCap="Square"
- Data="M3 10.8973L1.9 12.8026M17 10.8973L18.1 12.8026M7.47998 12.6973L6.91058 14.8223M12.52 12.6973L13.0894 14.8223"
- Stroke="{StaticResource color.icon.base.neutral.norm.lv2}"
- StrokeThickness="2" />
- </Grid>
- <Grid Visibility="{Binding ElementName=close, Path=Visibility, Converter={StaticResource UnvisibleConvert}}">
- <Path
- Width="20"
- Height="20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M19 10C19 10.1949 18.859 10.6759 18.3852 11.3782C17.9381 12.0409 17.2726 12.7841 16.4329 13.4801C14.7446 14.8795 12.4627 16 10 16C7.50771 16 5.22082 14.981 3.55093 13.6545C2.71821 12.993 2.06253 12.2733 1.62266 11.6009C1.17041 10.9097 1 10.3526 1 10C1 9.64743 1.17041 9.0903 1.62266 8.39905C2.06253 7.72674 2.71821 7.00699 3.55093 6.34552C5.22082 5.01903 7.50771 4 10 4C12.4627 4 14.7446 5.12047 16.4329 6.5199C17.2726 7.21593 17.9381 7.95909 18.3852 8.6218C18.859 9.32408 19 9.80507 19 10Z"
- Stroke="{StaticResource color.icon.base.brand}"
- StrokeThickness="2" />
- <Ellipse
- Margin="1.600000000000001,1.2,0,0"
- Width="8"
- Height="8"
- Stroke="#94989c"
- StrokeThickness="2">
- <Ellipse.RenderTransform>
- <TranslateTransform X="-0.5" Y="-0.5" />
- </Ellipse.RenderTransform>
- </Ellipse>
- </Grid>
- </Grid>
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="Transparent" />
- <Setter TargetName="border" Property="BorderBrush" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="Transparent" />
-
-
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="close" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <!--<Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
- </Trigger>-->
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <SolidColorBrush
- x:Key="Button.Select.Background"
- Opacity="0.1"
- Color="#1770F4" />
- <SolidColorBrush x:Key="Button.SelectForeground.Background" Color="#1770F4" />
- <Style x:Key="ToggleBtnSelectStyle" TargetType="customControl:CustomIconToggleBtn">
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
- <Setter Property="Foreground" Value="#8F96A7" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Margin" Value="4,0,4,0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="customControl:CustomIconToggleBtn">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="true">
- <Grid>
- <Grid
- Width="40"
- Height="40"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Image
- x:Name="ImageIcon"
- Width="20"
- Height="20"
- Source="{Binding Icon, RelativeSource={RelativeSource Mode=TemplatedParent}}"
- Visibility="Collapsed" />
- </Grid>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.MouseOver.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Pressed.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Pressed.Border}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="{StaticResource Button.Select.Background}" />
- <Setter Property="Foreground" Value="{StaticResource Button.SelectForeground.Background}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="BlueBtnStyle" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="#1460F3" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource BlueBtn.Mouseover.Background}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource BlueBtn.Pressed.Background}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="#33000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="#FF999999" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.5" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="InsideBarBtnStyle" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Margin" Value="4,0,4,0" />
- <Setter Property="Width" Value="auto" />
- <Setter Property="Height" Value="28" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="0,0,0,0"
- CornerRadius="4"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CompressBtn" TargetType="Button">
- <Setter Property="Background" Value="White" />
- <Setter Property="BorderBrush" Value="White" />
- <Setter Property="Width" Value="528" />
- <Setter Property="Height" Value="64" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="Black"
- BorderThickness="1,1,1,1"
- CornerRadius="7,7,7,7"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="#1A000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="gray" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="#26000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="gray" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="Transparent" />
- <Setter TargetName="border" Property="BorderBrush" Value="#33000000" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="#FF999999" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="RadioButton.MouseOver.Background" Color="#1A000000" />
- <SolidColorBrush x:Key="RadioButton.MouseOver.Border" Color="#FF5593FF" />
- <SolidColorBrush x:Key="RadioButton.MouseOver.Glyph" Color="#FFF3F9FF" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Background" Color="#00000000" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Border" Color="#FFBCBCBC" />
- <SolidColorBrush x:Key="RadioButton.Disabled.Glyph" Color="#FF707070" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Background" Color="#26000000" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Border" Color="#FF3C77DD" />
- <SolidColorBrush x:Key="RadioButton.Pressed.Glyph" Color="#1A477EDE" />
- <SolidColorBrush x:Key="RadioButton.Static.Glyph" Color="#FF212121" />
- <SolidColorBrush x:Key="RadioButton.Static.Background" Color="#FFFFFFFF" />
- <SolidColorBrush x:Key="RadioButton.Static.Border" Color="#FF707070" />
- <!-- 自定义形状的单选按钮 -->
- <Style x:Key="RectangleRadionButton" TargetType="{x:Type RadioButton}">
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="72" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.MouseOver.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.MouseOver.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.MouseOver.Glyph}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Disabled.Glyph}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Pressed.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Pressed.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="Red" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="RectangleRadionButtonWithCorner" TargetType="{x:Type RadioButton}">
- <Setter Property="Background" Value="{StaticResource RadioButton.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="72" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource RadioButton.MouseOver.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource RadioButton.Pressed.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource RadioButton.Pressed.Border}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- 带有蓝色边框的单选按钮 -->
- <Style x:Key="BlueBorderRadionButtonWithCorner" TargetType="{x:Type RadioButton}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="72" />
- <Setter Property="Height" Value="80" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Grid
- x:Name="templateRoot"
- Background="Transparent"
- SnapsToDevicePixels="True">
- <Border
- x:Name="radioButtonBorder"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4">
- <Rectangle
- x:Name="optionMark"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Opacity="0" />
- </Border>
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.MouseOver.Glyph}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="radioButtonBorder" Property="Background" Value="{StaticResource RadioButton.Disabled.Background}" />
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="{StaticResource RadioButton.Disabled.Border}" />
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Disabled.Glyph}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="optionMark" Property="Fill" Value="{StaticResource RadioButton.Pressed.Glyph}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="radioButtonBorder" Property="BorderBrush" Value="blue" />
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter TargetName="optionMark" Property="Opacity" Value="0.56" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- Design Token SubToolbar lv2 radionbutton -->
- <Style
- x:Key="SubToolbarRdb"
- BasedOn="{StaticResource RectangleRadionButtonWithCorner}"
- TargetType="{x:Type RadioButton}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontSize" Value="12" />
- <Setter Property="FontFamily" Value="Segoe UI" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
- <Setter Property="BorderThickness" Value="0" />
- <!--<Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="{StaticResource color.item-state.sel.bg.lv2}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
- </Trigger>
- </Style.Triggers>-->
- </Style>
- <Style x:Key="HomePageCompressBtn" TargetType="Button">
- <Setter Property="Background" Value="White" />
- <Setter Property="BorderBrush" Value="White" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="White"
- BorderThickness="1,1,1,1"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="#1A000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="AntiqueWhite" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="#26000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="WhiteSmoke" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="White" />
- <Setter TargetName="border" Property="BorderBrush" Value="White" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="Black" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ResourceDictionary>
|