refactor: rewrite lfs pointer detection and image loading

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-05 21:06:31 +08:00
parent eebadd67a1
commit a023a9259b
No known key found for this signature in database
14 changed files with 286 additions and 199 deletions

View file

@ -68,6 +68,32 @@
</ScrollViewer>
</Grid>
</DataTemplate>
<DataTemplate DataType="vm:RevisionLFSImage">
<TabControl Margin="0,8,0,0" SelectedIndex="{Binding Source={x:Static vm:Preferences.Instance}, Path=LFSImageActiveIdx, Mode=TwoWay}">
<TabControl.Styles>
<Style Selector="TabControl /template/ ItemsPresenter#PART_ItemsPresenter > WrapPanel">
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
</TabControl.Styles>
<TabItem>
<TabItem.Header>
<TextBlock Text="LFS" FontWeight="Bold"/>
</TabItem.Header>
<ContentControl Content="{Binding LFS}"/>
</TabItem>
<TabItem>
<TabItem.Header>
<TextBlock Text="IMAGE" FontWeight="Bold"/>
</TabItem.Header>
<ContentControl Content="{Binding Image}"/>
</TabItem>
</TabControl>
</DataTemplate>
</UserControl.DataTemplates>
</UserControl>