StateTitle.xaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="Venus_Themes.UserControls.StateTitle"
  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:Venus_Themes.UserControls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="40" d:DesignWidth="800" x:Name="stateTitle">
  9. <!--<Border BorderThickness="1" BorderBrush="#D7D7D7">-->
  10. <Grid>
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition/>
  13. <ColumnDefinition Width="2*"/>
  14. </Grid.ColumnDefinitions>
  15. <TextBox Text="{Binding ElementName=stateTitle,Path=Title}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{Binding ElementName=stateTitle,Path=LabelColor}" Height="30" VerticalAlignment="Center" BorderThickness="1" BorderBrush="Silver" Foreground="#076DB6" FontWeight="Bold" FontSize="15" IsReadOnly="True">
  16. <TextBox.Resources>
  17. <Style TargetType="{x:Type Border}">
  18. <Setter Property="CornerRadius" Value="4 0 0 4"/>
  19. <Setter Property="BorderBrush" Value="Black"/>
  20. <Setter Property="BorderThickness" Value="1"/>
  21. </Style>
  22. </TextBox.Resources>
  23. </TextBox>
  24. <TextBox Grid.Column="1" Text="{Binding ElementName=stateTitle,Path=TextBoxValue}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{Binding ElementName=stateTitle,Path=TextBoxColor}" Height="30" VerticalAlignment="Center" BorderThickness="0 1 1 1" BorderBrush="Silver" Foreground="Black" Margin="0 0 5 0" FontSize="18" IsReadOnly="True">
  25. <TextBox.Resources>
  26. <Style TargetType="{x:Type Border}">
  27. <Setter Property="CornerRadius" Value="0 4 4 0"/>
  28. <Setter Property="BorderBrush" Value="Black"/>
  29. </Style>
  30. </TextBox.Resources>
  31. </TextBox>
  32. </Grid>
  33. <!--</Border>-->
  34. </UserControl>