1234567891011121314151617181920212223242526272829303132333435363738 |
- <UserControl x:Class="HistoryView.Controls.Header"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:HistoryView.Controls"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- x:Name="This">
- <Border Background="{StaticResource ThemeColor}" Height="auto" CornerRadius="{Binding ElementName=This, Path=CornerRadius}">
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="0"/>
- <ColumnDefinition/>
- <ColumnDefinition Width="0"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" VerticalAlignment="Center" Margin="0,4">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="0"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Image Source="pack://application:,,,/Resources/jetplasmalogo.png" Height="16" VerticalAlignment="Center"/>
- <TextBlock x:Name="TitleName" Grid.Row="2" Margin="4,0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right" Foreground="White" Text="{Binding ElementName=This, Path=Title}"/>
- </Grid>
- <ContentPresenter Grid.Column="2" Content="{Binding ElementName=This, Path=DisplayContent}"/>
- <ContentPresenter Grid.Column="4" Content="{Binding ElementName=This, Path=UserContent}"/>
- </Grid>
- </Border>
- </UserControl>
|