Header.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl x:Class="HistoryView.Controls.Header"
  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:HistoryView.Controls"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. mc:Ignorable="d"
  10. x:Name="This">
  11. <Border Background="{StaticResource ThemeColor}" Height="auto" CornerRadius="{Binding ElementName=This, Path=CornerRadius}">
  12. <Grid >
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="auto"/>
  15. <ColumnDefinition Width="0"/>
  16. <ColumnDefinition/>
  17. <ColumnDefinition Width="0"/>
  18. <ColumnDefinition Width="auto"/>
  19. </Grid.ColumnDefinitions>
  20. <Grid Grid.Column="0" VerticalAlignment="Center" Margin="0,4">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="auto"/>
  23. <RowDefinition Height="0"/>
  24. <RowDefinition Height="auto"/>
  25. </Grid.RowDefinitions>
  26. <Image Source="pack://application:,,,/Resources/jetplasmalogo.png" Height="16" VerticalAlignment="Center"/>
  27. <TextBlock x:Name="TitleName" Grid.Row="2" Margin="4,0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White" Text="{Binding ElementName=This, Path=Title}"/>
  28. </Grid>
  29. <ContentPresenter Grid.Column="2" Content="{Binding ElementName=This, Path=DisplayContent}"/>
  30. <ContentPresenter Grid.Column="4" Content="{Binding ElementName=This, Path=UserContent}"/>
  31. </Grid>
  32. </Border>
  33. </UserControl>