mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect.git
synced 2025-06-25 05:54:14 +08:00
167 lines
8.6 KiB
XML
167 lines
8.6 KiB
XML
<Styles xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style Selector="TextBox">
|
|
<Setter Property="Foreground" Value="{DynamicResource TextControlForeground}" />
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#13265a" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#183678" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="SelectionBrush" Value="{DynamicResource TextControlSelectionHighlightColor}" />
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Setter Property="CornerRadius" Value="6" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
<Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
|
|
<Setter Property="MinWidth" Value="{DynamicResource TextControlThemeMinWidth}" />
|
|
<Setter Property="Padding" Value="{DynamicResource TextControlThemePadding}" />
|
|
<Setter Property="FocusAdorner" Value="{x:Null}" />
|
|
<Setter Property="ScrollViewer.IsScrollChainingEnabled" Value="True" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Template">
|
|
<ControlTemplate>
|
|
<DataValidationErrors>
|
|
<Panel>
|
|
<Border
|
|
Name="PART_BorderElement"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
MinWidth="{TemplateBinding MinWidth}"
|
|
MinHeight="{TemplateBinding MinHeight}">
|
|
</Border>
|
|
<Border>
|
|
<Grid ColumnDefinitions="Auto,*,Auto" >
|
|
<ContentPresenter Grid.Column="0"
|
|
Grid.ColumnSpan="1"
|
|
Content="{TemplateBinding InnerLeftContent}"/>
|
|
<DockPanel x:Name="PART_InnerDockPanel"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="1"
|
|
Cursor="IBeam"
|
|
Margin="{TemplateBinding Padding}">
|
|
<TextBlock Name="PART_FloatingWatermark"
|
|
Foreground="{DynamicResource SystemAccentColor}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
IsVisible="False"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Text="{TemplateBinding Watermark}"
|
|
DockPanel.Dock="Top" />
|
|
<ScrollViewer Name="PART_ScrollViewer"
|
|
HorizontalScrollBarVisibility="{TemplateBinding (ScrollViewer.HorizontalScrollBarVisibility)}"
|
|
VerticalScrollBarVisibility="{TemplateBinding (ScrollViewer.VerticalScrollBarVisibility)}"
|
|
IsScrollChainingEnabled="{TemplateBinding (ScrollViewer.IsScrollChainingEnabled)}"
|
|
AllowAutoHide="{TemplateBinding (ScrollViewer.AllowAutoHide)}"
|
|
BringIntoViewOnFocusChange="{TemplateBinding (ScrollViewer.BringIntoViewOnFocusChange)}">
|
|
<Panel>
|
|
<TextBlock Name="PART_Watermark"
|
|
Opacity="0.5"
|
|
Text="{TemplateBinding Watermark}"
|
|
TextAlignment="{TemplateBinding TextAlignment}"
|
|
TextWrapping="{TemplateBinding TextWrapping}"
|
|
IsVisible="{TemplateBinding Text, Converter={x:Static StringConverters.IsNullOrEmpty}}"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
<TextPresenter Name="PART_TextPresenter"
|
|
Foreground="#ffffff"
|
|
Text="{TemplateBinding Text, Mode=TwoWay}"
|
|
CaretIndex="{TemplateBinding CaretIndex}"
|
|
SelectionStart="{TemplateBinding SelectionStart}"
|
|
SelectionEnd="{TemplateBinding SelectionEnd}"
|
|
TextAlignment="{TemplateBinding TextAlignment}"
|
|
TextWrapping="{TemplateBinding TextWrapping}"
|
|
LineHeight="{TemplateBinding LineHeight}"
|
|
LetterSpacing="{TemplateBinding LetterSpacing}"
|
|
PasswordChar="{TemplateBinding PasswordChar}"
|
|
RevealPassword="{TemplateBinding RevealPassword}"
|
|
SelectionBrush="{TemplateBinding SelectionBrush}"
|
|
SelectionForegroundBrush="{TemplateBinding SelectionForegroundBrush}"
|
|
CaretBrush="#FFFFFF"
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
|
</Panel>
|
|
</ScrollViewer>
|
|
</DockPanel>
|
|
<ContentPresenter Grid.Column="2" Grid.ColumnSpan="1" Content="{TemplateBinding InnerRightContent}"/>
|
|
</Grid>
|
|
</Border>
|
|
</Panel>
|
|
</DataValidationErrors>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
<Style Selector="^ /template/ TextBlock#PART_Watermark">
|
|
<Setter Property="Foreground" Value="#aaaaaa" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
</Style>
|
|
<Style Selector="TextBox:pointerover">
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Style Selector="^ /template/ Border#PART_BorderElement">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#183171" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#1d4492" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style Selector="^ /template/ TextBlock#PART_Watermark">
|
|
<Setter Property="Foreground" Value="#aaaaaa" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
</Style>
|
|
<Style Selector="TextBox:focus">
|
|
<Setter Property="BorderThickness" Value="1" />
|
|
<Style Selector="^ /template/ Border#PART_BorderElement">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#183171" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#1d4492" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
</Style>
|
|
<Style Selector="^ /template/ TextBlock#PART_Watermark">
|
|
<Setter Property="Foreground" Value="#aaaaaa" />
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
</Style>
|
|
|
|
<Style Selector="TextBox.login">
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#3458b7" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
<Style Selector="TextBox.login:pointerover">
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#375dc1" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
<Style Selector="TextBox.login:focus">
|
|
<Setter Property="BorderBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#375dc1" />
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="FontSize" Value="14" />
|
|
</Style>
|
|
</Styles>
|