156 lines
7.5 KiB
XML
156 lines
7.5 KiB
XML
<ResourceDictionary
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:local="clr-namespace:CAD.Extend.Views.CustomControl"
|
||
xmlns:po="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
|
||
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
|
||
<!-- 系统颜色 -->
|
||
<SolidColorBrush x:Key="ColorPrimary" Color="#026BE3" />
|
||
<SolidColorBrush x:Key="ColorSecond" Color="#02ADFF" />
|
||
<SolidColorBrush x:Key="ColorOther" Color="#DBE0E4" />
|
||
|
||
|
||
|
||
<!-- style放后面,单纯的属性放前面,否则解析顺序不对 -->
|
||
<!-- modalwindow -->
|
||
<Style x:Key="CustomWindowStyle" TargetType="Window">
|
||
<Setter Property="AllowsTransparency" Value="True" />
|
||
<Setter Property="Background" Value="White" />
|
||
<Setter Property="ResizeMode" Value="NoResize" />
|
||
<Setter Property="WindowStyle" Value="None" />
|
||
</Style>
|
||
<!-- 系统按钮风格 -->
|
||
<Style x:Key="sysBtn" TargetType="Button">
|
||
<Setter Property="Width" Value="65" />
|
||
<Setter Property="Height" Value="26" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="FontSize" Value="12" />
|
||
<Setter Property="Foreground" Value="White" />
|
||
<Setter Property="BorderThickness" Value="0" />
|
||
<Setter Property="Background" Value="{StaticResource ColorSecond}" />
|
||
<Style.Triggers>
|
||
<!-- 鼠标滑过时的背景颜色和前景颜色 -->
|
||
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True">
|
||
<Setter Property="Background" Value="Red" />
|
||
<!-- 高亮背景色 -->
|
||
|
||
<Setter Property="Foreground" Value="Black" />
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
<Style x:Key="sysBtn2" TargetType="Button">
|
||
<Setter Property="Width" Value="65" />
|
||
<Setter Property="Height" Value="26" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="FontSize" Value="12" />
|
||
<Setter Property="Foreground" Value="Black" />
|
||
<Setter Property="BorderThickness" Value="0" />
|
||
<Setter Property="Background" Value="{StaticResource ColorOther}" />
|
||
<Style.Triggers>
|
||
<!-- 鼠标滑过时的背景颜色和前景颜色 -->
|
||
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True">
|
||
<Setter Property="Background" Value="Red" />
|
||
<!-- 高亮背景色 -->
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
<Style x:Key="sysBtn3" TargetType="Button">
|
||
<Setter Property="Width" Value="120" />
|
||
<Setter Property="Height" Value="40" />
|
||
<Setter Property="Margin" Value="5,2,5,2" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
<Setter Property="HorizontalAlignment" Value="Center" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="FontSize" Value="13" />
|
||
<Setter Property="Foreground" Value="Black" />
|
||
<Setter Property="BorderThickness" Value="0" />
|
||
<Setter Property="Background" Value="{StaticResource ColorOther}" />
|
||
<Style.Triggers>
|
||
<!-- 鼠标滑过时的背景颜色和前景颜色 -->
|
||
<DataTrigger Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}" Value="True">
|
||
<Setter Property="Background" Value="{StaticResource ColorOther}" />
|
||
<!-- 高亮背景色 -->
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
|
||
<!-- 系统textblock -->
|
||
<Style x:Key="sysLabel" TargetType="TextBlock">
|
||
<Setter Property="Height" Value="20" />
|
||
<Setter Property="Margin" Value="0,5,0,0" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
</Style>
|
||
<Style x:Key="sysLabel2" TargetType="TextBlock">
|
||
<Setter Property="Width" Value="Auto" />
|
||
<Setter Property="Height" Value="15" />
|
||
<Setter Property="Margin" Value="5,0,0,0" />
|
||
<Setter Property="Foreground" Value="White" />
|
||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
</Style>
|
||
|
||
<!-- 系统textbox -->
|
||
<Style x:Key="sysTextBox" TargetType="TextBox">
|
||
<Setter Property="Height" Value="24" />
|
||
<Setter Property="Margin" Value="5,5,5,0" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
</Style>
|
||
<Style x:Key="WhiteStyle" TargetType="TextBox">
|
||
<Setter Property="Foreground" Value="White" />
|
||
<Setter Property="Background" Value="#2d3135" />
|
||
<Setter Property="BorderBrush" Value="Black" />
|
||
<Setter Property="BorderThickness" Value="1" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||
</Style>
|
||
|
||
<Style x:Key="sysDescribeTextBox" TargetType="TextBox">
|
||
<Setter Property="Height" Value="50" />
|
||
<Setter Property="Width" Value="213" />
|
||
<Setter Property="TextWrapping" Value="Wrap" />
|
||
<Setter Property="AcceptsReturn" Value="True" />
|
||
<Setter Property="Margin" Value="5,5,5,0" />
|
||
<Setter Property="Padding" Value="0" />
|
||
<Setter Property="VerticalAlignment" Value="Top" />
|
||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||
<Setter Property="VerticalContentAlignment" Value="Top" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||
</Style>
|
||
<Style x:Key="sysTextAreaInfo" TargetType="TextBox">
|
||
<Setter Property="Height" Value="100" />
|
||
<Setter Property="Width" Value="300" />
|
||
<Setter Property="TextWrapping" Value="Wrap" />
|
||
<Setter Property="AcceptsReturn" Value="True" />
|
||
<Setter Property="Margin" Value="10,5,10,5" />
|
||
<Setter Property="Padding" Value="0" />
|
||
<Setter Property="VerticalAlignment" Value="Top" />
|
||
<Setter Property="HorizontalAlignment" Value="Left" />
|
||
<Setter Property="VerticalContentAlignment" Value="Top" />
|
||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||
</Style>
|
||
<!-- 全局 RadFilePathPicker 样式 -->
|
||
<Style x:Key="sysFilePathPicker" TargetType="telerik:RadFilePathPicker">
|
||
<Setter Property="Height" Value="24" />
|
||
<Setter Property="Margin" Value="5,0,5,0" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
</Style>
|
||
<Style x:Key="sysCombobox" TargetType="telerik:RadComboBox">
|
||
<Setter Property="Height" Value="24" />
|
||
<Setter Property="Margin" Value="5,5,5,0" />
|
||
<Setter Property="VerticalAlignment" Value="Center" />
|
||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
</Style>
|
||
|
||
|
||
</ResourceDictionary>
|