143 lines
No EOL
7 KiB
XML
143 lines
No EOL
7 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style TargetType="{x:Type TextBox}"
|
|
x:Key="ModernTextbox">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
<Border CornerRadius="10"
|
|
Background="#353340">
|
|
<Grid>
|
|
<Rectangle StrokeThickness="1"/>
|
|
<TextBox Margin="1"
|
|
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Text, UpdateSourceTrigger=PropertyChanged}"
|
|
BorderThickness="0"
|
|
Background="Transparent"
|
|
VerticalAlignment="Center"
|
|
Padding="5"
|
|
Foreground="#cfcfcf"
|
|
x:Name="SearchBox"/>
|
|
<TextBlock IsHitTestVisible="False"
|
|
Text="Search..."
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Margin="10,0,0,0"
|
|
FontSize="11"
|
|
Foreground="DarkGray"
|
|
Grid.Column="1">
|
|
|
|
<TextBlock.Style>
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Text, ElementName=SearchBox}" Value="">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
<Setter Property="Visibility" Value="Hidden"/>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type TextBox}"
|
|
x:Key="KeyNameTextbox">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
<Border CornerRadius="10"
|
|
Background="#353340">
|
|
<Grid>
|
|
<Rectangle StrokeThickness="1"/>
|
|
<TextBox Margin="1"
|
|
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Text, UpdateSourceTrigger=PropertyChanged}"
|
|
BorderThickness="0"
|
|
Background="Transparent"
|
|
VerticalAlignment="Center"
|
|
Padding="5"
|
|
Foreground="#cfcfcf"
|
|
x:Name="SearchBox"/>
|
|
<TextBlock IsHitTestVisible="False"
|
|
Text="Key Name..."
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Margin="10,0,0,0"
|
|
FontSize="11"
|
|
Foreground="DarkGray"
|
|
Grid.Column="1">
|
|
|
|
<TextBlock.Style>
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Text, ElementName=SearchBox}" Value="">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
<Setter Property="Visibility" Value="Hidden"/>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
<Style TargetType="{x:Type TextBox}"
|
|
x:Key="KeyValTextbox">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
<Border CornerRadius="10"
|
|
Background="#353340">
|
|
<Grid>
|
|
<Rectangle StrokeThickness="1"/>
|
|
<TextBox Margin="1"
|
|
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Text, UpdateSourceTrigger=PropertyChanged}"
|
|
BorderThickness="0"
|
|
Background="Transparent"
|
|
VerticalAlignment="Center"
|
|
Padding="5"
|
|
Foreground="#cfcfcf"
|
|
x:Name="SearchBox"/>
|
|
<TextBlock IsHitTestVisible="False"
|
|
Text="Key Value"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Margin="10,0,0,0"
|
|
FontSize="11"
|
|
Foreground="DarkGray"
|
|
Grid.Column="1">
|
|
|
|
<TextBlock.Style>
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Text, ElementName=SearchBox}" Value="">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
<Setter Property="Visibility" Value="Hidden"/>
|
|
</Style>
|
|
</TextBlock.Style>
|
|
|
|
</TextBlock>
|
|
</Grid>
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
</ResourceDictionary> |