代码拉取完成,页面将自动刷新
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CookPopularUI.WPF">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/CookPopularUI.WPF;component/Themes/BaseStyles/ButtonBaseStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style x:Key="DefaultButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonBaseStyle}">
<Setter Property="local:FrameworkElementBaseAttached.CornerRadius" Value="2" />
<Setter Property="local:FrameworkElementBaseAttached.ShadowEffect" Value="{x:Null}" />
<Setter Property="local:FrameworkElementBaseAttached.IconWidth" Value="0" />
<Setter Property="local:FrameworkElementBaseAttached.IconHeight" Value="0" />
<Setter Property="local:FrameworkElementBaseAttached.IconGeometry" Value="{x:Null}" />
<Setter Property="local:FrameworkElementBaseAttached.IconDirection" Value="Right" />
<Setter Property="local:FrameworkElementBaseAttached.IconMargin" Value="0" />
<Setter Property="local:ButtonBaseAttached.IsShowRipple" Value="True" />
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="{DynamicResource ControlMouseOverBrush}" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="{DynamicResource ControlPressBrush}" />
<Setter Property="local:ButtonBaseAttached.ImageSource" Value="{x:Null}" />
<Setter Property="local:ButtonBaseAttached.ImageWidth" Value="0" />
<Setter Property="local:ButtonBaseAttached.ImageHeight" Value="0" />
<Setter Property="local:ButtonBaseAttached.GifStream" Value="{x:Null}" />
<Setter Property="local:ButtonBaseAttached.GifSource" Value="{x:Null}" />
<Setter Property="local:ButtonBaseAttached.GifWidth" Value="0" />
<Setter Property="local:ButtonBaseAttached.GifHeight" Value="0" />
<Setter Property="local:ButtonBaseAttached.IsAutoStart" Value="False" />
</Style>
<Style x:Key="ButtonNoMouseOverTransparentStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="Foreground" Value="{DynamicResource PrimaryForegroundBrush}" />
<Setter Property="Background" Value="Transparent" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource ControlForegroundBrush}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ButtonTransparentStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonNoMouseOverTransparentStyle}">
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="Transparent" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="Transparent" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource PrimaryForegroundBrush}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ButtonOutlineStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="Foreground" Value="{DynamicResource PrimaryForegroundBrush}" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="{DynamicResource ControlMouseOverBrush}" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="{DynamicResource ControlPressBrush}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource ControlForegroundBrush}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ButtonWithIconStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:FrameworkElementBaseAttached.IconMargin" Value="0,0,8,0" />
<Setter Property="local:FrameworkElementBaseAttached.IconWidth" Value="{StaticResource Double20Value}" />
<Setter Property="local:FrameworkElementBaseAttached.IconHeight" Value="{StaticResource Double20Value}" />
</Style>
<Style x:Key="ButtonIconStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:FrameworkElementBaseAttached.IconWidth" Value="{StaticResource Double20Value}" />
<Setter Property="local:FrameworkElementBaseAttached.IconHeight" Value="{StaticResource Double20Value}" />
</Style>
<Style x:Key="ButtonNoMouseOverTransparentIconStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonIconStyle}">
<Setter Property="Foreground" Value="{DynamicResource PrimaryForegroundBrush}" />
<Setter Property="Background" Value="Transparent" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource ControlForegroundBrush}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ButtonTransparentIconStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonNoMouseOverTransparentIconStyle}">
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="Transparent" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="Transparent" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource PrimaryForegroundBrush}" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ButtonWithImageStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:FrameworkElementBaseAttached.IconMargin" Value="0,0,8,0" />
<Setter Property="local:ButtonBaseAttached.ImageWidth" Value="{StaticResource Double30Value}" />
<Setter Property="local:ButtonBaseAttached.ImageHeight" Value="{StaticResource Double30Value}" />
</Style>
<Style x:Key="ButtonImageStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:ButtonBaseAttached.ImageWidth" Value="{StaticResource Double30Value}" />
<Setter Property="local:ButtonBaseAttached.ImageHeight" Value="{StaticResource Double30Value}" />
</Style>
<Style x:Key="ButtonNoMouseOverTransparentImageStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonImageStyle}">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style x:Key="ButtonTransparentImageStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonNoMouseOverTransparentImageStyle}">
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="Transparent" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="Transparent" />
</Style>
<Style x:Key="ButtonWithGifStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:FrameworkElementBaseAttached.IconMargin" Value="0,0,8,0" />
<Setter Property="local:ButtonBaseAttached.GifWidth" Value="{StaticResource Double30Value}" />
<Setter Property="local:ButtonBaseAttached.GifHeight" Value="{StaticResource Double30Value}" />
</Style>
<Style x:Key="ButtonGifStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
<Setter Property="local:ButtonBaseAttached.GifWidth" Value="{StaticResource Double30Value}" />
<Setter Property="local:ButtonBaseAttached.GifHeight" Value="{StaticResource Double30Value}" />
</Style>
<Style x:Key="ButtonNoMouseOverTransparentGifStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonGifStyle}">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style x:Key="ButtonTransparentGifStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource ButtonNoMouseOverTransparentGifStyle}">
<Setter Property="local:FrameworkElementBaseAttached.ControlMouseOverBrush" Value="Transparent" />
<Setter Property="local:FrameworkElementBaseAttached.ControlPressBrush" Value="Transparent" />
</Style>
</ResourceDictionary>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。