]> fbox.kageds.com Git - NEATEST.git/blob - NEATEST/MainWindow.xaml
1bed06a240106dd271563b4d38d3d64a720a4d77
[NEATEST.git] / NEATEST / MainWindow.xaml
1 <Window x:Class="MainWindow"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6 xmlns:local="clr-namespace:NEATEST"
7 mc:Ignorable="d"
8 Title="MainWindow" Height="450" Width="800">
9 <Grid Background="White" HorizontalAlignment="Right" VerticalAlignment="Top" >
10 <TextBox Margin="-115,23,18,-23">
11 <TextBox.Style>
12 <Style TargetType="TextBox" xmlns:sys="clr-namespace:System;assembly=mscorlib">
13 <Style.Resources>
14 <VisualBrush x:Key="CueBannerBrush" AlignmentX="Left" AlignmentY="Center" Stretch="None">
15 <VisualBrush.Visual>
16 <Label Content="Search" Foreground="LightGray" />
17 </VisualBrush.Visual>
18 </VisualBrush>
19 </Style.Resources>
20 <Style.Triggers>
21 <Trigger Property="Text" Value="{x:Static sys:String.Empty}">
22 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
23 </Trigger>
24 <Trigger Property="Text" Value="{x:Null}">
25 <Setter Property="Background" Value="{StaticResource CueBannerBrush}" />
26 </Trigger>
27 <Trigger Property="IsKeyboardFocused" Value="True">
28 <Setter Property="Background" Value="White" />
29 </Trigger>
30 </Style.Triggers>
31 </Style>
32 </TextBox.Style>
33 </TextBox>
34 </Grid>
35 </Window>