<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <!-- 只读项 的标题 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldHeader"> <Setter Property="Margin" Value="3" /> <Setter Property="Foreground" Value="#FF3B3B3B" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="FontSize" Value="12" /> <Setter Property="TextAlignment" Value="Left" /> </Style> <!-- 只读项 的标题 2行 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldHeader.Row2" BasedOn="{StaticResource Styles.Text.FieldHeader}"> <Setter Property="FontSize" Value="10" /> </Style> <!-- 可写项 的标题 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldHeader.Editable" BasedOn="{StaticResource Styles.Text.FieldHeader}"> <Setter Property="Foreground" Value="#FF0083D7" /> </Style> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldHeader.Comment" BasedOn="{StaticResource Styles.Text.FieldHeader}"> <Setter Property="Foreground" Value="#FF888888" /> <Setter Property="FontSize" Value="10" /> </Style> <!-- 可写项 的标题 2行 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldHeader.Editable.Row2" BasedOn="{StaticResource Styles.Text.FieldHeader.Editable}"> <Setter Property="FontSize" Value="10" /> </Style> <!-- 只读项 内容 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldContent"> <Setter Property="Margin" Value="3" /> <Setter Property="Foreground" Value="#FF3B3B3B" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="FontSize" Value="15" /> <Setter Property="TextAlignment" Value="Left" /> </Style> <!-- 内容的分割线 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldContent.Separator"> <Setter Property="Foreground" Value="#FF888888" /> <Setter Property="FontSize" Value="15" /> <Setter Property="FontFamily" Value="Arial" /> <Setter Property="TextAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Bottom" /> <Setter Property="Text" Value="|" /> </Style> <!-- 内容的单位 --> <Style TargetType="TextBlock" x:Key="Styles.Text.FieldContent.Unit"> <Setter Property="Foreground" Value="#FF888888" /> <Setter Property="FontSize" Value="10" /> <Setter Property="FontFamily" Value="Arial" /> <Setter Property="TextAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Bottom" /> </Style> <!-- 输入框 内容 --> <Style TargetType="TextBox" x:Key="Styles.Text.FieldContent.Input" > <Setter Property="Margin" Value="3" /> <Setter Property="Foreground" Value="#FF3B3B3B" /> <Setter Property="FontWeight" Value="Bold" /> <Setter Property="FontSize" Value="15" /> <Setter Property="TextAlignment" Value="Left" /> <Setter Property="MinWidth" Value="150" /> </Style> </ResourceDictionary>