24 lines
1.6 KiB
XML
24 lines
1.6 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="using:Flawless.Client.ViewModels"
|
|
x:DataType="vm:RepositoryViewModel"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Flawless.Client.Views.RepositoryPage.RepoCommitPageView">
|
|
<Grid ColumnDefinitions="2*, *">
|
|
<TreeDataGrid Grid.Column="0" Source="{Binding Commits}"/>
|
|
<Border Grid.Column="1" Classes="Shadow" Theme="{StaticResource CardBorder}">
|
|
<ScrollViewer IsVisible="{Binding !!Commits.RowSelection.SelectedItem}">
|
|
<StackPanel Spacing="8">
|
|
<Label FontWeight="600" FontSize="18" Content="Commit Details"/>
|
|
<Label Content="{Binding Commits.RowSelection.SelectedItem.FullCommitId, FallbackValue='00000000-0000', StringFormat='Id: {0}'}"/>
|
|
<Label Content="{Binding Commits.RowSelection.SelectedItem.Author, FallbackValue='Author', StringFormat='Author: {0}'}"/>
|
|
<Label Content="{Binding Commits.RowSelection.SelectedItem.CommitAt, FallbackValue='At Time', StringFormat='Time: {0}'}"/>
|
|
<Label FontWeight="400" FontSize="14" Content="{Binding Commits.RowSelection.SelectedItem.FullMessage, FallbackValue='Commit messages.'}"/>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|