增加摄像头中控台项目

This commit is contained in:
2025-12-30 10:53:02 +08:00
parent 471b8c50b6
commit de3adf0339
31 changed files with 2736 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Color x:Key="C.Brand">#007ACC</Color>
<Color x:Key="C.Brand.Hover">#1C97EA</Color>
<Color x:Key="C.Brand.Pressed">#005A9E</Color>
<Color x:Key="C.Success">#4EC9B0</Color>
<Color x:Key="C.Warning">#FFCA28</Color>
<Color x:Key="C.Danger">#F44747</Color>
<Color x:Key="C.Bg.L1">#1E1E1E</Color>
<Color x:Key="C.Bg.L2">#252526</Color>
<Color x:Key="C.Bg.L3">#333333</Color>
<Color x:Key="C.Bg.L4">#3E3E42</Color>
<Color x:Key="C.Text.Primary">#D4D4D4</Color>
<Color x:Key="C.Text.Secondary">#858585</Color>
<Color x:Key="C.Text.Disable">#555555</Color>
<Color x:Key="C.Text.Inverse">#FFFFFF</Color>
<Color x:Key="C.Border">#3E3E42</Color>
<Color x:Key="C.Border.Focus">#007ACC</Color>
<Color x:Key="Color.Bg.L1">#1E1E1E</Color>
<Color x:Key="Color.Bg.L2">#252526</Color>
<Color x:Key="Color.Bg.L3">#2D2D30</Color>
<Color x:Key="Color.Bg.L4">#3E3E42</Color>
<SolidColorBrush x:Key="Brush.Bg.L1" Color="{StaticResource Color.Bg.L1}" />
<SolidColorBrush x:Key="Brush.Bg.L2" Color="{StaticResource Color.Bg.L2}" />
<SolidColorBrush x:Key="Brush.Bg.L3" Color="{StaticResource Color.Bg.L3}" />
<SolidColorBrush x:Key="Brush.Bg.L4" Color="{StaticResource Color.Bg.L4}" />
<SolidColorBrush x:Key="Brush.Bg.Window" Color="{StaticResource C.Bg.L1}" />
<SolidColorBrush x:Key="Brush.Bg.Panel" Color="{StaticResource C.Bg.L2}" />
<SolidColorBrush x:Key="Brush.Bg.Input" Color="{StaticResource C.Bg.L3}" />
<SolidColorBrush x:Key="Brush.Bg.Hover" Color="{StaticResource C.Bg.L4}" />
<SolidColorBrush x:Key="Brush.Text.Primary" Color="{StaticResource C.Text.Primary}" />
<SolidColorBrush x:Key="Brush.Text.Secondary" Color="{StaticResource C.Text.Secondary}" />
<SolidColorBrush x:Key="Brush.Text.Disabled" Color="{StaticResource C.Text.Disable}" />
<SolidColorBrush x:Key="Brush.Text.Inverse" Color="{StaticResource C.Text.Inverse}" />
<SolidColorBrush x:Key="Brush.Brand" Color="{StaticResource C.Brand}" />
<SolidColorBrush x:Key="Brush.Accent" Color="{StaticResource C.Brand}" />
<SolidColorBrush x:Key="Brush.Accent.Hover" Color="{StaticResource C.Brand.Hover}" />
<SolidColorBrush x:Key="Brush.Accent.Pressed" Color="{StaticResource C.Brand.Pressed}" />
<SolidColorBrush x:Key="Brush.Status.Success" Color="{StaticResource C.Success}" />
<SolidColorBrush x:Key="Brush.Status.Warning" Color="{StaticResource C.Warning}" />
<SolidColorBrush x:Key="Brush.Status.Danger" Color="{StaticResource C.Danger}" />
<SolidColorBrush x:Key="Brush.Border" Color="{StaticResource C.Border}" />
<SolidColorBrush x:Key="Brush.Border.Focus" Color="{StaticResource C.Border.Focus}" />
</ResourceDictionary>

View File

@@ -0,0 +1,56 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Color x:Key="C.Brand">#005FB8</Color>
<Color x:Key="C.Brand.Hover">#2B88D8</Color>
<Color x:Key="C.Brand.Pressed">#004080</Color>
<Color x:Key="C.Success">#107C10</Color>
<Color x:Key="C.Warning">#D13438</Color>
<Color x:Key="C.Danger">#A80000</Color>
<Color x:Key="C.Bg.L1">#FFFFFF</Color>
<Color x:Key="C.Bg.L2">#F3F3F3</Color>
<Color x:Key="C.Bg.L3">#FFFFFF</Color>
<Color x:Key="C.Bg.L4">#E1E1E1</Color>
<Color x:Key="C.Text.Primary">#201F1E</Color>
<Color x:Key="C.Text.Secondary">#605E5C</Color>
<Color x:Key="C.Text.Disable">#A19F9D</Color>
<Color x:Key="C.Text.Inverse">#FFFFFF</Color>
<Color x:Key="C.Border">#D2D0CE</Color>
<Color x:Key="C.Border.Focus">#005FB8</Color>
<Color x:Key="Color.Bg.L1">#F5F5F7</Color>
<Color x:Key="Color.Bg.L2">#FFFFFF</Color>
<Color x:Key="Color.Bg.L3">#F0F0F0</Color>
<Color x:Key="Color.Bg.L4">#E5E5E5</Color>
<SolidColorBrush x:Key="Brush.Bg.L1" Color="{StaticResource Color.Bg.L1}" />
<SolidColorBrush x:Key="Brush.Bg.L2" Color="{StaticResource Color.Bg.L2}" />
<SolidColorBrush x:Key="Brush.Bg.L3" Color="{StaticResource Color.Bg.L3}" />
<SolidColorBrush x:Key="Brush.Bg.L4" Color="{StaticResource Color.Bg.L4}" />
<SolidColorBrush x:Key="Brush.Bg.Window" Color="{StaticResource C.Bg.L1}" />
<SolidColorBrush x:Key="Brush.Bg.Panel" Color="{StaticResource C.Bg.L2}" />
<SolidColorBrush x:Key="Brush.Bg.Input" Color="{StaticResource C.Bg.L3}" />
<SolidColorBrush x:Key="Brush.Bg.Hover" Color="{StaticResource C.Bg.L4}" />
<SolidColorBrush x:Key="Brush.Text.Primary" Color="{StaticResource C.Text.Primary}" />
<SolidColorBrush x:Key="Brush.Text.Secondary" Color="{StaticResource C.Text.Secondary}" />
<SolidColorBrush x:Key="Brush.Text.Disabled" Color="{StaticResource C.Text.Disable}" />
<SolidColorBrush x:Key="Brush.Text.Inverse" Color="{StaticResource C.Text.Inverse}" />
<SolidColorBrush x:Key="Brush.Brand" Color="{StaticResource C.Brand}" />
<SolidColorBrush x:Key="Brush.Accent" Color="{StaticResource C.Brand}" />
<SolidColorBrush x:Key="Brush.Accent.Hover" Color="{StaticResource C.Brand.Hover}" />
<SolidColorBrush x:Key="Brush.Accent.Pressed" Color="{StaticResource C.Brand.Pressed}" />
<SolidColorBrush x:Key="Brush.Status.Success" Color="{StaticResource C.Success}" />
<SolidColorBrush x:Key="Brush.Status.Warning" Color="{StaticResource C.Warning}" />
<SolidColorBrush x:Key="Brush.Status.Danger" Color="{StaticResource C.Danger}" />
<SolidColorBrush x:Key="Brush.Border" Color="{StaticResource C.Border}" />
<SolidColorBrush x:Key="Brush.Border.Focus" Color="{StaticResource C.Border.Focus}" />
</ResourceDictionary>

View File

@@ -0,0 +1,23 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib">
<FontFamily x:Key="Font.Normal">Microsoft YaHei, Segoe UI</FontFamily>
<FontFamily x:Key="Font.Code">Consolas, Cascadia Code, Courier New</FontFamily>
<sys:Double x:Key="Size.Font.Small">12</sys:Double>
<sys:Double x:Key="Size.Font.Normal">14</sys:Double>
<sys:Double x:Key="Size.Font.Large">18</sys:Double>
<sys:Double x:Key="Size.Font.Huge">24</sys:Double>
<CornerRadius x:Key="Radius.Small">3</CornerRadius>
<CornerRadius x:Key="Radius.Normal">5</CornerRadius>
<CornerRadius x:Key="Radius.Circle">100</CornerRadius>
<sys:Double x:Key="Height.Input">32</sys:Double>
<sys:Double x:Key="Height.Button">32</sys:Double>
<Thickness x:Key="Thickness.Border">1</Thickness>
<Thickness x:Key="Thickness.Focus">2</Thickness>
</ResourceDictionary>

View File

@@ -0,0 +1,378 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style TargetType="Button">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Inverse}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="15,0" />
<Setter Property="Height" Value="{StaticResource Height.Button}" />
<Setter Property="FontSize" Value="{StaticResource Size.Font.Normal}" />
<Setter Property="FontFamily" Value="{StaticResource Font.Normal}" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border
x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{StaticResource Radius.Normal}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="Background" Value="{DynamicResource Brush.Accent.Hover}" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="border" Property="Background" Value="{DynamicResource Brush.Accent.Pressed}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter TargetName="border" Property="Background" Value="{DynamicResource Brush.Bg.Panel}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Disabled}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
x:Key="Btn.Ghost"
BasedOn="{StaticResource {x:Type Button}}"
TargetType="Button">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Hover}" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
</Trigger>
</Style.Triggers>
</Style>
<Style
x:Key="Btn.Danger"
BasedOn="{StaticResource {x:Type Button}}"
TargetType="Button">
<Setter Property="Background" Value="{DynamicResource Brush.Status.Danger}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Inverse}" />
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="0.8" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Opacity" Value="0.6" />
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="TextBox">
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Input}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="BorderThickness" Value="{StaticResource Thickness.Border}" />
<Setter Property="Padding" Value="8,0" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Height" Value="{StaticResource Height.Input}" />
<Setter Property="FontFamily" Value="{StaticResource Font.Code}" />
<Setter Property="CaretBrush" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Border
x:Name="border"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{StaticResource Radius.Small}">
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="{DynamicResource Brush.Text.Secondary}" />
</Trigger>
<Trigger Property="IsKeyboardFocused" Value="True">
<Setter TargetName="border" Property="BorderBrush" Value="{DynamicResource Brush.Border.Focus}" />
<Setter TargetName="border" Property="BorderThickness" Value="{StaticResource Thickness.Focus}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Width" Value="10" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid Background="Transparent">
<Track x:Name="PART_Track" IsDirectionReversed="true">
<Track.Thumb>
<Thumb>
<Thumb.Template>
<ControlTemplate TargetType="Thumb">
<Border
Margin="2,0"
Background="{DynamicResource Brush.Text.Disabled}"
CornerRadius="4" />
</ControlTemplate>
</Thumb.Template>
</Thumb>
</Track.Thumb>
</Track>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ListView">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
</Style>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListViewItem">
<Border
x:Name="Bd"
Padding="8,4"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Brush.Bg.Hover}" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Brush.Bg.Panel}" />
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Style.GridViewHeader.Flat" TargetType="GridViewColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Panel}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Secondary}" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="BorderThickness" Value="0,0,1,1" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="GridViewColumnHeader">
<Border
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter
Margin="{TemplateBinding Padding}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Style.ListViewItem.Table" TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderThickness" Value="0,0,0,1" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="MinHeight" Value="35" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListViewItem">
<Border
x:Name="Bd"
Padding="4,0"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<Grid>
<Rectangle
x:Name="AccentBar"
Width="3"
Margin="-4,0,0,0"
HorizontalAlignment="Left"
Fill="{DynamicResource Brush.Accent}"
Visibility="Collapsed" />
<GridViewRowPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Brush.Bg.Hover}" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Brush.Bg.L4}" />
<Setter TargetName="AccentBar" Property="Visibility" Value="Visible" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}" />
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="FontWeight" Value="SemiBold" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
x:Key="Style.TextBox.InTable"
BasedOn="{StaticResource {x:Type TextBox}}"
TargetType="TextBox">
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Input}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Padding" Value="8,4" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Height" Value="30" />
</Style>
<Style x:Key="Style.TextBox.CodeEditor" TargetType="TextBox">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontFamily" Value="Consolas, Cascadia Code, Courier New, monospace" />
<Setter Property="FontSize" Value="13" />
<Setter Property="Padding" Value="10" />
<Setter Property="IsReadOnly" Value="True" />
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="VerticalContentAlignment" Value="Top" />
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
<Setter Property="HorizontalScrollBarVisibility" Value="Auto" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Border Background="{TemplateBinding Background}" BorderThickness="0">
<ScrollViewer x:Name="PART_ContentHost" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style
x:Key="TabRadioStyle"
BasedOn="{StaticResource {x:Type ToggleButton}}"
TargetType="RadioButton">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Secondary}" />
<Setter Property="BorderThickness" Value="0,0,0,2" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Padding" Value="15,6" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter
Margin="{TemplateBinding Padding}"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="Background" Value="{DynamicResource Brush.Bg.L4}" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Hover}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="Style.TextBox.Search" TargetType="TextBox">
<Setter Property="Background" Value="{DynamicResource Brush.Bg.Input}" />
<Setter Property="Foreground" Value="{DynamicResource Brush.Text.Primary}" />
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Border}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="Height" Value="28" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="25,0,5,0" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Grid>
<Border
x:Name="Bd"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="4">
<Grid>
<TextBlock
Margin="8,0,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontSize="11"
Foreground="{DynamicResource Brush.Text.Secondary}"
IsHitTestVisible="False"
Text="🔍" />
<ScrollViewer x:Name="PART_ContentHost" Margin="{TemplateBinding Padding}" />
<TextBlock
x:Name="Watermark"
Margin="28,0,0,0"
VerticalAlignment="Center"
Foreground="{DynamicResource Brush.Text.Secondary}"
IsHitTestVisible="False"
Opacity="0.5"
Text="{TemplateBinding Tag}"
Visibility="Collapsed" />
</Grid>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Text" Value="">
<Setter TargetName="Watermark" Property="Visibility" Value="Visible" />
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
</Trigger>
<Trigger Property="IsFocused" Value="True">
<Setter TargetName="Bd" Property="BorderBrush" Value="{DynamicResource Brush.Accent}" />
<Setter TargetName="Bd" Property="Background" Value="{DynamicResource Brush.Bg.Panel}" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>