You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

260 lines
13 KiB

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--关闭按钮样式-->
<Style x:Key="CloseButtonStyle" TargetType="{x:Type Button}">
<Setter Property="Width" Value="28"/>
<Setter Property="Height" Value="28"/>
<Setter Property="Background" Value="#EAEDF0"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="0,16,16,0"/>
<Setter Property="Clip">
<Setter.Value>
<EllipseGeometry Center="14,14" RadiusX="14" RadiusY="14"/>
</Setter.Value>
</Setter>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Background="{TemplateBinding Background}">
<Grid>
<Image Source="/IOTContainer;component/Resources/MainViewRes/cross.png" Height="10" Width="10"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#cfd8e2"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#8fa9c2"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--圆形按钮渐变色-->
<Style x:Key="RoundedGelButton" TargetType="Button">
<Setter Property="Width" Value="100"/>
<Setter Property="Height" Value="100"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid>
<Ellipse Name="GelBackground" StrokeThickness="0.5" Fill="Black">
<Ellipse.Stroke>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#ff7e7e7e"></GradientStop>
<GradientStop Offset="1" Color="Black"></GradientStop>
</LinearGradientBrush>
</Ellipse.Stroke>
</Ellipse>
<Ellipse Margin="15,5,15,50">
<Ellipse.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
<GradientStop Offset="0" Color="#aaffffff"></GradientStop>
<GradientStop Offset="1" Color="Transparent"></GradientStop>
</LinearGradientBrush>
</Ellipse.Fill>
</Ellipse>
<ContentPresenter Name="GelButtonContent" VerticalAlignment="Center" HorizontalAlignment="Center"
Content="{TemplateBinding Content}"/>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Ellipse.Fill" TargetName="GelBackground">
<Setter.Value>
<RadialGradientBrush>
<GradientStop Offset="0" Color="Lime"></GradientStop>
<GradientStop Offset="1" Color="DarkGreen"></GradientStop>
</RadialGradientBrush>
</Setter.Value>
</Setter>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Ellipse.Fill" TargetName="GelBackground">
<Setter.Value>
<RadialGradientBrush>
<GradientStop Offset="0" Color="#ffcc34"></GradientStop>
<GradientStop Offset="1" Color="#cc9900"></GradientStop>
</RadialGradientBrush>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="TitleLabelStyle" TargetType="Label">
<Setter Property="FontSize" Value="24"/>
<Setter Property="Width" Value="155"/>
<Setter Property="Height" Value="45"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="FontWeight" Value="500"/>
<Setter Property="Foreground" Value="#313D4B"/>
</Style>
<Style x:Key="TipsLabelStyle" TargetType="Label">
<Setter Property="FontSize" Value="15"/>
<Setter Property="Width" Value="85"/>
<Setter Property="Height" Value="28"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="FontWeight" Value="400"/>
<Setter Property="Foreground" Value="#44566C"/>
</Style>
<Style x:Key="TextBoxStyle" TargetType="TextBox">
<Setter Property="Width" Value="420"/>
<Setter Property="Height" Value="40"/>
<Setter Property="Background" Value="#F8FAFB"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!--主界面按钮样式-CornerRadius=15-->
<Style x:Key="SureButtonStyle" TargetType="Button">
<Setter Property="Background" Value="#0081FF"/>
<Setter Property="Width" Value="110"/>
<Setter Property="Height" Value="40"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="400"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border BorderThickness="0" BorderBrush="Black" CornerRadius="5" Background="{TemplateBinding Background}">
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#cfd8e2"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#8fa9c2"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--主界面按钮样式-CornerRadius=15-->
<Style x:Key="NexButtonStyle" TargetType="Button">
<Setter Property="Background" Value="White"/>
<Setter Property="Width" Value="110"/>
<Setter Property="Height" Value="40"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Foreground" Value="#0081FF"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="400"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border BorderThickness="1" BorderBrush="#0081FF" CornerRadius="5" Background="{TemplateBinding Background}">
<ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#cfd8e2"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="#8fa9c2"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!--下拉框样式-->
<Style x:Key="ComboBoxStyle" TargetType="ComboBox">
<Setter Property="IsEditable" Value="True"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="FontWeight" Value="500"/>
<Setter Property="Foreground" Value="#8697A8"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Width" Value="420"/>
<Setter Property="Height" Value="40"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<!--消息框样式-->
<Style x:Key="MesLabelStyle" TargetType="TextBox">
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,20,0,0"/>
<!--<Setter Property="Width" Value="460"/>
<Setter Property="Height" Value="80"/>-->
<Setter Property="TextWrapping" Value="WrapWithOverflow"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontWeight" Value="400"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="#44566C"/>
</Style>
<!--消息框详情样式-->
<Style x:Key="MesDetailLabelStyle" TargetType="TextBox">
<Setter Property="VerticalAlignment" Value="Top"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="Margin" Value="0,10,0,0"/>
<!--<Setter Property="Width" Value="460"/>
<Setter Property="Height" Value="80"/>-->
<Setter Property="TextWrapping" Value="WrapWithOverflow"/>
<Setter Property="FontSize" Value="15"/>
<Setter Property="FontWeight" Value="300"/>
<Setter Property="IsReadOnly" Value="True"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="#44566C"/>
</Style>
<!--主页样式-->
<Style x:Key="VersionLabelStyle" TargetType="Label">
<Setter Property="FontSize" Value="20"/>
<Setter Property="Width" Value="180"/>
<Setter Property="Height" Value="45"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="FontWeight" Value="500"/>
<Setter Property="Foreground" Value="#313D4B"/>
</Style>
<Style x:Key="VersionLabelNameStyle" TargetType="Label">
<Setter Property="FontSize" Value="20"/>
<Setter Property="Width" Value="155"/>
<Setter Property="Height" Value="45"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="FontWeight" Value="500"/>
<Setter Property="Foreground" Value="#313D4B"/>
</Style>
<FontFamily x:Key="DINProRegular">/Container;Component/Resources/DINPro-Regular.otf#DINPro</FontFamily>
<FontFamily x:Key="CNRegular">/Container;Component/Resources/SourceHanSansCN-Regular.otf#Source Han Sans CN</FontFamily>
<FontFamily x:Key="BrownStd">/Container;Component/Resources/BROWNSTD REGULAR.otf#BrownStd</FontFamily>
</ResourceDictionary>