ScreenToGif/Themes/Generic.xaml
(开头部分) 153KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:n="clr-namespace:ScreenToGif.Controls"
xmlns:c="clr-namespace:ScreenToGif.Util.Converters"
xmlns:u="clr-namespace:ScreenToGif.Util"
xmlns:s="clr-namespace:System;assembly=mscorlib">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/ScreenToGif;component/Themes/RangeSlider.xaml"/>
<ResourceDictionary Source="/ScreenToGif;component/Themes/EncoderListViewItem.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--Converter-->
<BooleanToVisibilityConverter x:Key="Bool2VisibilityConverterGeneric" />
<c:StringToInt x:Key="StringToInt"/>
<c:UriToBitmap x:Key="UriToBitmapConverter"/>
<c:IntToDelayString x:Key="IntToDelayStringConverter"/>
<c:DoubleToPercentage x:Key="DoubleToPercentageConverter"/>
<c:BytesToSize x:Key="BytesToSizeConverter"/>
<c:ColorToAlpha x:Key="ColorToAlphaConverter"/>
<c:IntToString x:Key="IntToStringConverter"/>
<c:MultiLineTitle x:Key="MultiLineTitleConverter"/>
<c:KeysToString x:Key="KeysToString"/>
<!--Window Button Style -->
<Style TargetType="{x:Type Button}" x:Key="WindowButtonStyle">
<Setter Property="Foreground" Value="{Binding Path=Foreground, RelativeSource={RelativeSource TemplatedParent}}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontFamily" Value="Webdings"/>
<Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="0,0,5,0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ButtonBase}">
<Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Margin="0" Background="{TemplateBinding Background}"
SnapsToDevicePixels="True" Effect="{DynamicResource ShadowEffect}">
<Viewbox MaxHeight="15" MaxWidth="15" Stretch="Uniform">
<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}"
ContentStringFormat="{TemplateBinding ContentStringFormat}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Viewbox>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Foreground" Value="White"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FFD5E1F2" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#FFA3BDE3" />
后面还有 2320 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
