UnderLineTextBlock.xaml 975 B

12345678910111213141516171819
  1. <UserControl x:Class="SAGA.UserControls.WPF.UnderLineTextBlock"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:SAGA.UserControls.WPF"
  7. mc:Ignorable="d"
  8. d:DesignHeight="24" d:DesignWidth="300">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*"/>
  12. <RowDefinition Height="1"/>
  13. </Grid.RowDefinitions>
  14. <TextBlock Grid.Row="0" Text="{Binding Path=Text,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center"
  15. Foreground="LightGray"></TextBlock>
  16. <Border Grid.Row="1" BorderThickness="1" BorderBrush="Black"></Border>
  17. </Grid>
  18. </UserControl>