Header_Content.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl x:Class="SummaryModule.Controls.Header_Content"
  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:SummaryModule.Controls"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <UserControl.Resources>
  11. <ResourceDictionary >
  12. <ResourceDictionary.MergedDictionaries>
  13. <ResourceDictionary Source="/UICommon;component/Resources.xaml"/>
  14. </ResourceDictionary.MergedDictionaries>
  15. </ResourceDictionary>
  16. </UserControl.Resources>
  17. <Border BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="0.5" CornerRadius="4" MinHeight="32">
  18. <Grid>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition/>
  21. <ColumnDefinition/>
  22. </Grid.ColumnDefinitions>
  23. <Border Background="#e6f4ff" CornerRadius="4,0,0,4">
  24. <ContentPresenter TextElement.FontSize="14" TextElement.Foreground="{StaticResource ThemeColor}" VerticalAlignment="Center" Margin="8,0,0,0" Content="{Binding ElementName=This, Path=Header}"></ContentPresenter>
  25. <!--<TextBlock Foreground="{StaticResource ThemeColor}" FontSize="14" VerticalAlignment="Center" Margin="8,0,0,0" Text="{Binding ElementName=This, Path=Header}"/>-->
  26. </Border>
  27. <Border Grid.Column="1" Background="White" CornerRadius="0,4,4,0" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="0.5,0,0,0">
  28. <ContentPresenter TextElement.FontSize="14" TextElement.Foreground="{StaticResource ThemeColor}" VerticalAlignment="Center" Margin="{Binding ElementName=This, Path=ContentMargin}" Content="{Binding ElementName=This, Path=Content}"></ContentPresenter>
  29. </Border>
  30. </Grid>
  31. </Border>
  32. </UserControl>