123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/PDF Master;component/Styles/CustomBtnStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="2"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="TitleBarBtn" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <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="VerticalContentAlignment" Value="Center" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Width" Value="32" />
- <Setter Property="Height" Value="32" />
- <Setter Property="IsTabStop" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- 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.hov.bg}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="{StaticResource color.item-state.hov.bg}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Pressed.Border}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <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>
- <Style
- x:Key="PageEditToolBtn"
- BasedOn="{StaticResource TitleBarBtn}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Width" Value="auto" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- 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="{StaticResource Button.MouseOver.Border}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="#26000000" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Pressed.Border}" />
- </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>
- <Style
- x:Key="CloseBtn"
- BasedOn="{StaticResource TitleBarBtn}"
- TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- 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 CloseButton.MouseOver.Foreground}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.MouseOver.Border}" />
- <Setter TargetName="contentPresenter" Property="Opacity" Value="0.8" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 只有内容的按钮(普通状态下,没有固定的边框和背景色) -->
- <!--<Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />-->
- <Style x:Key="OnlyContentBtn" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Width" Value="32" />
- <Setter Property="Height" Value="32" />
- <Setter Property="IsTabStop" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- 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 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="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>
- <Style x:Key="NoColorBtn" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="IsTabStop" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- 阅读模式的按钮模板样式 -->
- <ControlTemplate x:Key="zoomout" TargetType="{x:Type ButtonBase}">
- <Border
- Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- SnapsToDevicePixels="True">
- <Path
- Name="content"
- Width="16"
- Height="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M6.5,0 C10.0898509,0 13,2.91014913 13,6.5 C13,8.1223907 12.4056075,9.60595359 11.4227096,10.7448016 L15.5,14.8210176 L14.8210176,15.5 L10.7448016,11.4227096 C9.60595359,12.4056075 8.1223907,13 6.5,13 C2.91014913,13 0,10.0898509 0,6.5 C0,2.91014913 2.91014913,0 6.5,0 Z M6.5,1 C3.46243388,1 1,3.46243388 1,6.5 C1,9.53756612 3.46243388,12 6.5,12 C9.53756612,12 12,9.53756612 12,6.5 C12,3.46243388 9.53756612,1 6.5,1 Z M10,6 L10,7 L3,7 L3,6 L10,6 Z"
- Fill="White" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="Button.IsDefaulted" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="White" />
- </Trigger>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#B3FFFFFF" />
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#80FFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="zoomin" TargetType="{x:Type ButtonBase}">
- <Border
- Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="{TemplateBinding Border.BorderThickness}"
- SnapsToDevicePixels="True">
- <Path
- Name="content"
- Width="16"
- Height="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M6.5,0 C10.0898509,0 13,2.91014913 13,6.5 C13,8.1223907 12.4056075,9.60595359 11.4227096,10.7448016 L15.5,14.8210176 L14.8210176,15.5 L10.7448016,11.4227096 C9.60595359,12.4056075 8.1223907,13 6.5,13 C2.91014913,13 0,10.0898509 0,6.5 C0,2.91014913 2.91014913,0 6.5,0 Z M6.5,1 C3.46243388,1 1,3.46243388 1,6.5 C1,9.53756612 3.46243388,12 6.5,12 C9.53756612,12 12,9.53756612 12,6.5 C12,3.46243388 9.53756612,1 6.5,1 Z M7,3 L7,6 L10,6 L10,7 L7,7 L7,10 L6,10 L6,7 L3,7 L3,6 L6,6 L6,3 L7,3 Z"
- Fill="White" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="Button.IsDefaulted" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="White" />
- </Trigger>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#B3FFFFFF" />
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#80FFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="prepage" TargetType="{x:Type ButtonBase}">
- <Border
- Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="0"
- SnapsToDevicePixels="True">
- <Polygon
- Name="content"
- Width="16"
- Height="16"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Fill="White"
- Points="10.2999705 2.5 11 3.22644971 6.39995321 8 11 12.7735503 10.2999705 13.5 5 8" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="Button.IsDefaulted" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="White" />
- </Trigger>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#B3FFFFFF" />
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#80FFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="nextpage" TargetType="{x:Type ButtonBase}">
- <Border
- Name="border"
- Background="{TemplateBinding Panel.Background}"
- BorderBrush="{TemplateBinding Border.BorderBrush}"
- BorderThickness="0"
- SnapsToDevicePixels="True">
- <Polygon
- x:Name="content"
- Width="16"
- Height="16"
- Fill="White"
- Points="10.2999705 2.5 11 3.22644971 6.39995321 8 11 12.7735503 10.2999705 13.5 5 8">
- <Polygon.RenderTransform>
- <TransformGroup>
- <TranslateTransform X="-8" Y="8" />
- <ScaleTransform ScaleX="-1" ScaleY="1" />
- <TranslateTransform X="8" Y="-8" />
- </TransformGroup>
- </Polygon.RenderTransform>
- </Polygon>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="Button.IsDefaulted" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="White" />
- </Trigger>
- <Trigger Property="UIElement.IsMouseOver" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#B3FFFFFF" />
- </Trigger>
- <Trigger Property="ButtonBase.IsPressed" Value="True">
- <Setter TargetName="content" Property="Path.Fill" Value="#80FFFFFF" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- ControlTemplate For Button With Corner 4 -->
- <ControlTemplate x:Key="ButtonControlTemplateWithCorner4" TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{StaticResource radius.base.m}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- <ControlTemplate x:Key="ButtonControlTemplateWithCorner20" TargetType="{x:Type Button}">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="{StaticResource radius.fullround-btn.l}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- x:Name="contentPresenter"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- </ControlTemplate>
- <!--
- Style for Btn.cta
- 样式里仅设置了背景色和文字颜色变化,字体大小和控件宽度需要调用时设置
- -->
- <Style x:Key="Btn.cta" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Background" Value="{StaticResource color.btn.cta.bg.norm}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.cta.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.cta.text.def}" />
- <Setter Property="FontFamily" Value="Segoe UI" />
- <Setter Property="FontWeight" Value="Regular" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="Template" Value="{StaticResource ButtonControlTemplateWithCorner4}" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.cta.bg.hov}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.cta.bg.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.cta.bg.act}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.cta.bg.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.btn.cta.bg.dis}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.cta.bg.dis}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.cta.text.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.Brand -->
- <Style
- x:Key="btn.brand"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="{StaticResource color.btn.brand.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.brand.text.def}" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.brand.bg.hov}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.brand.bg.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.brand.bg.act}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.brand.bg.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.btn.brand.bg.dis}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.brand.bg.dis}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.brand.text.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.Sec -->
- <Style
- x:Key="btn.sec"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.def}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.sec.border-color}" />
- <Setter Property="BorderThickness" Value="{StaticResource border-width.1}" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.btn.sec.bg.dis}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.sec.text.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.Sec-icon -->
- <Style
- x:Key="btn.sec-icon"
- BasedOn="{StaticResource btn.sec}"
- TargetType="{x:Type Button}" />
- <!-- Design Token Btn.Link -->
- <Style
- x:Key="btn.link"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.link.text.norm}" />
- <Setter Property="BorderThickness" Value="0" />
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Foreground" Value="{StaticResource color.btn.link.text.hov}" />
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Foreground" Value="{StaticResource color.btn.link.text.act}" />
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{StaticResource color.btn.link.text.dis}" />
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.Ghost -->
- <Style
- x:Key="btn.ghost"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.ghost.border.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.ghost.text.norm}" />
- <Setter Property="BorderThickness" Value="{StaticResource border-width.1}" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.ghost.border.norm}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.ghost.border.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.ghost.border.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="BorderBrush" Value="{StaticResource color.btn.ghost.border.dis}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.ghost.text.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.icon-Fill -->
- <Style
- x:Key="btn.icon-fill"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Background" Value="{StaticResource color.btn.icon-fill.bg.norm}" />
- <Setter Property="BorderThickness" Value="0" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.icon-fill.bg.norm}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.icon-fill.bg.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.icon-fill.bg.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.btn.icon-fill.bg.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Btn.Upgrade -->
- <Style
- x:Key="btn.upgrade"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Template" Value="{StaticResource ButtonControlTemplateWithCorner20}" />
- <Setter Property="Background" Value="{StaticResource color.btn.upgrade.bg.norm}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.upgrade.text.def}" />
- <Setter Property="BorderThickness" Value="0" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.upgrade.bg.norm}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.upgrade.bg.hov}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.btn.upgrade.bg.act}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.btn.upgrade.bg.dis}" />
- <Setter Property="Foreground" Value="{StaticResource color.btn.upgrade.text.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token SubToolBar Style -->
- <Style
- x:Key="subToolBar"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Template" Value="{StaticResource ButtonControlTemplateWithCorner4}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Width" Value="28" />
- <Setter Property="Height" Value="28" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <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="IsEnabled" Value="false">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Opacity" Value="0.6" />
- <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.dis}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- Design Token Pagination.Selector style -->
- <Style
- x:Key="btn.selector"
- BasedOn="{StaticResource Btn.cta}"
- TargetType="{x:Type Button}">
- <Setter Property="Template" Value="{StaticResource ButtonControlTemplateWithCorner4}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{StaticResource color.icon.base.neutral.norm.lv1}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Width" Value="24" />
- <Setter Property="Height" Value="24" />
- <Style.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="{StaticResource color.item-state.hov.bg}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="{StaticResource color.item-state.hov.bg}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="{StaticResource color.field.border.dis}" />
- <Setter Property="BorderBrush" Value="{StaticResource color.field.border.norm}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
|