2024-02-05 23:08:37 -08:00
|
|
|
<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:SourceGit.ViewModels"
|
|
|
|
xmlns:v="using:SourceGit.Views"
|
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
|
x:Class="SourceGit.Views.RevisionFiles"
|
|
|
|
x:DataType="vm:CommitDetail">
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
2024-09-23 18:28:30 -07:00
|
|
|
<ColumnDefinition Width="{Binding Source={x:Static vm:Preference.Instance}, Path=Layout.CommitDetailFilesLeftWidth, Mode=TwoWay}" MinWidth="200"/>
|
2024-03-26 00:18:34 -07:00
|
|
|
<ColumnDefinition Width="4"/>
|
2024-09-23 18:28:30 -07:00
|
|
|
<ColumnDefinition Width="*" MinWidth="100"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
2024-06-07 01:32:06 -07:00
|
|
|
<!-- File Tree -->
|
|
|
|
<Border Grid.Column="0" BorderBrush="{DynamicResource Brush.Border2}" BorderThickness="1" Background="{DynamicResource Brush.Contents}">
|
2024-07-11 22:54:13 -07:00
|
|
|
<v:RevisionFileTreeView Revision="{Binding Commit.SHA}"/>
|
2024-06-07 01:32:06 -07:00
|
|
|
</Border>
|
2024-02-05 23:08:37 -08:00
|
|
|
|
|
|
|
<GridSplitter Grid.Column="1"
|
2024-03-26 00:18:34 -07:00
|
|
|
MinWidth="1"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
|
2024-02-05 23:08:37 -08:00
|
|
|
Background="Transparent"/>
|
|
|
|
|
|
|
|
<!-- File Content Viewer -->
|
2024-03-26 00:18:34 -07:00
|
|
|
<Grid Grid.Column="2">
|
2024-02-05 23:08:37 -08:00
|
|
|
<Border BorderThickness="1" BorderBrush="{DynamicResource Brush.Border2}">
|
2024-08-23 20:36:02 -07:00
|
|
|
<v:RevisionFileContentViewer Content="{Binding ViewRevisionFileContent}"/>
|
2024-02-05 23:08:37 -08:00
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</UserControl>
|