401 lines
21 KiB
Plaintext
401 lines
21 KiB
Plaintext
|
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:cv="clr-namespace:MainShell.Converter"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
|
<ResourceDictionary.MergedDictionaries>
|
||
|
|
<ResourceDictionary Source="/Resources/Styles/ButtonStyles.xaml"/>
|
||
|
|
<ResourceDictionary Source="/Resources/Styles/NumberLimit.xaml"/>
|
||
|
|
</ResourceDictionary.MergedDictionaries>
|
||
|
|
<FontFamily x:Key="ttfFont">/MainShell;component/Resources/Font/#iconfont</FontFamily>
|
||
|
|
|
||
|
|
<!-- 全局转换器 -->
|
||
|
|
<cv:DateTimeToStringConverter x:Key="DateTimeToStringConverter"/>
|
||
|
|
<cv:BoolToVisibleConverter x:Key="BoolToVisibleConverter"/>
|
||
|
|
<cv:BoolToInversionConverter x:Key="boolToInversionConverter"/>
|
||
|
|
<cv:AxisIndexToNameConverter x:Key="AxisNameConverter"/>
|
||
|
|
<cv:EnumDescriptionConverter x:Key="EnumDescriptionConverter"/>
|
||
|
|
|
||
|
|
<!--画刷-->
|
||
|
|
<SolidColorBrush x:Key="PgBackground" Color="#EEEEED"/>
|
||
|
|
<SolidColorBrush x:Key="PgBorder" Color="#EEEEED"/>
|
||
|
|
<SolidColorBrush x:Key="MwGroupBoxBackground" Color="#38ABF1"/>
|
||
|
|
<!-- 基础文本样式 -->
|
||
|
|
<Style x:Key="CommonLableStyle" TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
|
||
|
|
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
|
<Setter Property="Margin" Value="3"/>
|
||
|
|
<Setter Property="Height" Value="35"/>
|
||
|
|
<Setter Property="Width" Value="120"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="LabelStyle" TargetType="TextBlock">
|
||
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
||
|
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
||
|
|
<Setter Property="Margin" Value="0,4,10,4"/>
|
||
|
|
<Setter Property="Foreground" Value="#333333"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="TextBlockStyle" TargetType="TextBlock">
|
||
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||
|
|
<Setter Property="Margin" Value="0,4,10,4"/>
|
||
|
|
<Setter Property="Foreground" Value="#333333"/>
|
||
|
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="ValueStyle" TargetType="TextBlock">
|
||
|
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
||
|
|
<Setter Property="Margin" Value="0,4,0,4"/>
|
||
|
|
<Setter Property="TextWrapping" Value="Wrap"/>
|
||
|
|
<Setter Property="Foreground" Value="#111111"/>
|
||
|
|
</Style>
|
||
|
|
<!-- GroupBox Header 样式 -->
|
||
|
|
<Style x:Key="LeftGroupStyle" TargetType="GroupBox">
|
||
|
|
<Setter Property="Margin" Value="0,0,0,15"/>
|
||
|
|
<Setter Property="BorderBrush" Value="#CCCCCC"/>
|
||
|
|
<Setter Property="BorderThickness" Value="1"/>
|
||
|
|
<Setter Property="Padding" Value="10"/>
|
||
|
|
<Setter Property="HeaderTemplate">
|
||
|
|
<Setter.Value>
|
||
|
|
<DataTemplate>
|
||
|
|
<TextBlock Text="{Binding}" FontWeight="Bold" FontSize="14" Foreground="#005792"/>
|
||
|
|
</DataTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<!-- GroupBox 分步骤样式 -->
|
||
|
|
<Style x:Key="GroupStepControl" TargetType="GroupBox">
|
||
|
|
<Setter Property="BorderBrush" Value="#37DFE8"/>
|
||
|
|
<Setter Property="BorderThickness" Value="1"/>
|
||
|
|
<Setter Property="Margin" Value="2,4"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="GroupBox">
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Border SnapsToDevicePixels="True" BorderThickness="0">
|
||
|
|
<ContentPresenter ContentSource="Header"/>
|
||
|
|
</Border>
|
||
|
|
<Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
|
Margin="{TemplateBinding Margin}"
|
||
|
|
SnapsToDevicePixels="True"
|
||
|
|
>
|
||
|
|
<ContentPresenter ContentSource="Content"/>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="HeaderTemplate">
|
||
|
|
<Setter.Value>
|
||
|
|
<DataTemplate>
|
||
|
|
<TextBlock Text="{Binding}" FontFamily="Segoe UI" FontWeight="Black"/>
|
||
|
|
</DataTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style TargetType="ListBoxItem" x:Key="padListBoxItemStyle">
|
||
|
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
|
<Setter Property="Padding" Value="5"/>
|
||
|
|
<Setter Property="Margin" Value="2"/>
|
||
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
||
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
|
<Setter Property="FontSize" Value="16"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="ListBoxItem">
|
||
|
|
<Border x:Name="Border"
|
||
|
|
Background="{TemplateBinding Background}"
|
||
|
|
BorderBrush="Transparent"
|
||
|
|
BorderThickness="1"
|
||
|
|
Padding="{TemplateBinding Padding}"
|
||
|
|
SnapsToDevicePixels="True">
|
||
|
|
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<!-- 选中状态的触发器 -->
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="Border" Property="Background" Value="#448EC9"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
</Trigger>
|
||
|
|
<!-- 鼠标悬停状态的触发器 -->
|
||
|
|
<Trigger Property="IsSelected" Value="True">
|
||
|
|
<Setter TargetName="Border" Property="Background" Value="#2E76CD"/>
|
||
|
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
<Style TargetType="ListBox" x:Key="recipeListBoxStyle">
|
||
|
|
<Setter Property="Background" Value="#F0F3F6"/>
|
||
|
|
<Setter Property="ItemContainerStyle">
|
||
|
|
<Setter.Value>
|
||
|
|
<Style TargetType="ListBoxItem" >
|
||
|
|
<Setter Property="Cursor" Value="Hand"/>
|
||
|
|
<Setter Property="Background" Value="#F0F3F6"/>
|
||
|
|
<Setter Property="Padding" Value="5"/>
|
||
|
|
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
|
<Setter Property="Opacity" Value="0.4"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="ListBoxItem">
|
||
|
|
<Border
|
||
|
|
Background="{TemplateBinding Background}"
|
||
|
|
|
||
|
|
SnapsToDevicePixels="True" MinHeight="40" >
|
||
|
|
<StackPanel Orientation="Horizontal">
|
||
|
|
<TextBlock VerticalAlignment="Center" FontSize="18" Foreground="#3DB39E" Text="" FontFamily="{StaticResource ttfFont}"/>
|
||
|
|
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Text="" FontFamily="{StaticResource ttfFont}" Visibility="{Binding IsInUse, Converter={StaticResource BoolToVisibleConverter}}"/>
|
||
|
|
<ContentPresenter
|
||
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
|
||
|
|
<TextBlock VerticalAlignment="Center" FontWeight="Bold" FontSize="16" Text="" FontFamily="{StaticResource ttfFont}" Visibility="{Binding IsInUse, Converter={StaticResource BoolToVisibleConverter}}"/>
|
||
|
|
<TextBlock VerticalAlignment="Center" Visibility="{Binding HasError, Converter={StaticResource BoolToVisibleConverter}}"
|
||
|
|
Margin="2,0" FontSize="16" Foreground="Red" Text=""
|
||
|
|
FontFamily="{StaticResource ttfFont}" />
|
||
|
|
</StackPanel>
|
||
|
|
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<!-- 选中项和悬停项 -->
|
||
|
|
<Trigger Property="IsSelected" Value="True">
|
||
|
|
<Setter Property="Background" Value="#448EC9"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="Opacity" Value="1"/>
|
||
|
|
</Trigger>
|
||
|
|
<MultiTrigger>
|
||
|
|
<MultiTrigger.Conditions>
|
||
|
|
<Condition Property="IsMouseOver" Value="True"/>
|
||
|
|
<Condition Property="IsSelected" Value="False"/>
|
||
|
|
</MultiTrigger.Conditions>
|
||
|
|
<Setter Property="Background" Value="#B5C3CD"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
</MultiTrigger>
|
||
|
|
<DataTrigger Binding="{Binding SelectedIndex,
|
||
|
|
RelativeSource={RelativeSource AncestorType=ListBox}}" Value="-1">
|
||
|
|
<Setter Property="Opacity" Value="1"/>
|
||
|
|
</DataTrigger>
|
||
|
|
<DataTrigger Binding="{Binding IsInUse}" Value="True">
|
||
|
|
<Setter Property="Foreground" Value="Blue"/>
|
||
|
|
</DataTrigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="ItemTemplate">
|
||
|
|
<Setter.Value>
|
||
|
|
<DataTemplate>
|
||
|
|
<TextBlock Text="{Binding RecipeName}" FontWeight="SemiBold" VerticalAlignment="Center" FontSize="16" />
|
||
|
|
</DataTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style x:Key="ToggleBtnSideBarStyle" TargetType="ToggleButton">
|
||
|
|
<Setter Property="Width" Value="30"/>
|
||
|
|
<Setter Property="Height" Value="50"/>
|
||
|
|
<Setter Property="Background" Value="#2196F3"/>
|
||
|
|
<Setter Property="Foreground" Value="White"/>
|
||
|
|
<Setter Property="BorderThickness" Value="0"/>
|
||
|
|
<Setter Property="Cursor" Value="Hand"/>
|
||
|
|
<Setter Property="Opacity" Value="0.15"/>
|
||
|
|
<Setter Property="ToolTip" Value="隐藏配方列表"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="ToggleButton">
|
||
|
|
<Border Background="{TemplateBinding Background}"
|
||
|
|
CornerRadius="5">
|
||
|
|
<TextBlock x:Name="txt"
|
||
|
|
Text=""
|
||
|
|
FontSize="26"
|
||
|
|
FontFamily="{StaticResource ttfFont}"
|
||
|
|
HorizontalAlignment="Center"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
Foreground="{TemplateBinding Foreground}"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter Property="Background" Value="#1976D2"/>
|
||
|
|
<Setter Property="Opacity" Value="0.9"/>
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsChecked" Value="True">
|
||
|
|
<Setter Property="Background" Value="#1565C0"/>
|
||
|
|
<Setter TargetName="txt" Property="Text" Value=""/>
|
||
|
|
<Setter Property="ToolTip" Value="显示配方列表"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
|
||
|
|
<Style x:Key="ModernCheckBoxStyle" TargetType="CheckBox">
|
||
|
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
|
<Setter Property="Foreground" Value="#C2C1C2"/>
|
||
|
|
<Setter Property="FontSize" Value="26"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="CheckBox">
|
||
|
|
<Border>
|
||
|
|
<StackPanel Orientation="Horizontal">
|
||
|
|
<TextBlock x:Name="tx" Text="" FontFamily="{StaticResource ttfFont}"/>
|
||
|
|
<ContentPresenter Content="{TemplateBinding Content}"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsChecked" Value="True">
|
||
|
|
<Setter TargetName="tx" Property="Text" Value=""/>
|
||
|
|
<Setter Property="Foreground" Value="#A84AF1"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<Style x:Key="TitleBarButtonStyle" TargetType="Button">
|
||
|
|
<Setter Property="Width" Value="32"/>
|
||
|
|
<Setter Property="Height" Value="24"/>
|
||
|
|
<Setter Property="Padding" Value="0"/>
|
||
|
|
<Setter Property="Background" Value="Transparent"/>
|
||
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
||
|
|
<Setter Property="BorderThickness" Value="0"/>
|
||
|
|
<Setter Property="Focusable" Value="False"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border x:Name="root" Background="{TemplateBinding Background}">
|
||
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#11000000"/>
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsPressed" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#22000000"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="TitleBarCloseButtonStyle" TargetType="Button" BasedOn="{StaticResource TitleBarButtonStyle}">
|
||
|
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
|
<Setter Property="Content" Value=""/>
|
||
|
|
<Setter Property="FontFamily" Value="{StaticResource ttfFont}"/>
|
||
|
|
<Setter Property="FontSize" Value="16"/>
|
||
|
|
<Setter Property="ToolTip" Value="关闭"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border x:Name="root" Background="{TemplateBinding Background}">
|
||
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#11000000"/>
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsPressed" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#22000000"/>
|
||
|
|
<Setter Property="Foreground" Value="Red"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
<Style x:Key="TitleBarMinButtonStyle" TargetType="Button" BasedOn="{StaticResource TitleBarButtonStyle}">
|
||
|
|
<Setter Property="Foreground" Value="Black"/>
|
||
|
|
<Setter Property="Content" Value=""/>
|
||
|
|
<Setter Property="FontFamily" Value="{StaticResource ttfFont}"/>
|
||
|
|
<Setter Property="FontSize" Value="16"/>
|
||
|
|
<Setter Property="ToolTip" Value="最小化"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="Button">
|
||
|
|
<Border x:Name="root" Background="{TemplateBinding Background}">
|
||
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
|
|
</Border>
|
||
|
|
<ControlTemplate.Triggers>
|
||
|
|
<Trigger Property="IsMouseOver" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#11000000"/>
|
||
|
|
</Trigger>
|
||
|
|
<Trigger Property="IsPressed" Value="True">
|
||
|
|
<Setter TargetName="root" Property="Background" Value="#22000000"/>
|
||
|
|
</Trigger>
|
||
|
|
</ControlTemplate.Triggers>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
|
||
|
|
<<<<<<< HEAD
|
||
|
|
<Style x:Key="MwGroupBoxStyle" TargetType="GroupBox">
|
||
|
|
<Setter Property="Background" Value="{StaticResource MwGroupBoxBackground}"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="GroupBox">
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Border CornerRadius="4" SnapsToDevicePixels="True" Background="{TemplateBinding Background}">
|
||
|
|
<ContentPresenter HorizontalAlignment="Center" ContentSource="Header"/>
|
||
|
|
</Border>
|
||
|
|
<Border Grid.Row="1" BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
|
BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
|
||
|
|
<ContentPresenter ContentSource="Content"/>
|
||
|
|
</Border>
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<Setter Property="HeaderTemplate">
|
||
|
|
<Setter.Value>
|
||
|
|
<DataTemplate>
|
||
|
|
<TextBlock Text="{Binding}" FontFamily="Segoe UI" FontWeight="Black" Foreground="White" Margin="10,4"/>
|
||
|
|
</DataTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
=======
|
||
|
|
<!-- DataGrid错误提示样式 -->
|
||
|
|
<Style x:Key="DataGridRowErrorStyle" TargetType="{x:Type DataGridRow}">
|
||
|
|
<Setter Property="ValidationErrorTemplate">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate>
|
||
|
|
<DockPanel>
|
||
|
|
<!-- 在行左侧显示一个红色感叹号 -->
|
||
|
|
<TextBlock Foreground="Red" FontWeight="Bold"
|
||
|
|
Text="!" DockPanel.Dock="Bottom" Margin="5,0,0,0"/>
|
||
|
|
<!-- 占位符,显示原始的行 -->
|
||
|
|
<AdornedElementPlaceholder />
|
||
|
|
</DockPanel>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
<!-- 当行有错误时,设置工具提示 -->
|
||
|
|
<Style.Triggers>
|
||
|
|
<Trigger Property="Validation.HasError" Value="True">
|
||
|
|
<Setter Property="ToolTip"
|
||
|
|
Value="{Binding RelativeSource={RelativeSource Self},
|
||
|
|
Path=(Validation.Errors)[0].ErrorContent}" />
|
||
|
|
</Trigger>
|
||
|
|
</Style.Triggers>
|
||
|
|
>>>>>>> 81155a53cff1759bc7c4285135affedd29f2b9d6
|
||
|
|
</Style>
|
||
|
|
</ResourceDictionary>
|