Advertisement
Guest User

Untitled

a guest
Jun 28th, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.10 KB | None | 0 0
  1.         <TextBox x:Name="firstName" Validation.Error="Text_ValidationError"
  2.                 Text="{Binding UpdateSourceTrigger=LostFocus, Path=firstName, ValidatesOnDataErrors=true, NotifyOnValidationError=true}" Margin="30,12,50,245" FontSize="32">
  3.             <TextBox.Style>
  4.                 <Style TargetType="TextBox">
  5.                     <Style.Triggers>
  6.                         <Trigger Property="Text" Value="">
  7.                             <Setter Property="Background">
  8.                                 <Setter.Value>
  9.                                     <VisualBrush Stretch="None">
  10.                                         <VisualBrush.Visual>
  11.                                             <TextBlock FontSize="32" Foreground="Gray" >First Name</TextBlock>
  12.                                         </VisualBrush.Visual>
  13.                                     </VisualBrush>
  14.                                 </Setter.Value>
  15.                             </Setter>
  16.                         </Trigger>
  17.                     </Style.Triggers>
  18.                 </Style>
  19.             </TextBox.Style>
  20.         </TextBox>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement