fix wiki avatar & weapon select item in view

This commit is contained in:
Lightczx
2023-08-29 15:31:20 +08:00
parent 088f915a54
commit 604c51e064
3 changed files with 17 additions and 3 deletions

View File

@@ -118,6 +118,9 @@
ItemsSource="{Binding Avatars}"
SelectedItem="{Binding Selected, Mode=TwoWay}"
SelectionMode="Single">
<mxi:Interaction.Behaviors>
<shcb:SelectedItemInViewBehavior/>
</mxi:Interaction.Behaviors>
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
@@ -592,6 +595,9 @@
ItemsSource="{Binding Avatars}"
SelectedItem="{Binding Selected, Mode=TwoWay}"
SelectionMode="Single">
<mxi:Interaction.Behaviors>
<shcb:SelectedItemInViewBehavior/>
</mxi:Interaction.Behaviors>
<GridView.ItemTemplate>
<DataTemplate>
<shvc:BottomTextControl Text="{Binding Name}">

View File

@@ -87,6 +87,9 @@
ItemsSource="{Binding Weapons}"
SelectedItem="{Binding Selected, Mode=TwoWay}"
SelectionMode="Single">
<mxi:Interaction.Behaviors>
<shcb:SelectedItemInViewBehavior/>
</mxi:Interaction.Behaviors>
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
@@ -113,7 +116,6 @@
</SplitView.Pane>
<SplitView.Content>
<ScrollViewer>
<StackPanel
MaxWidth="800"
Margin="0,0,16,0"
@@ -134,7 +136,10 @@
<mxi:Interaction.Behaviors>
<shcb:AutoHeightBehavior TargetHeight="1024" TargetWidth="2048"/>
</mxi:Interaction.Behaviors>
<ScrollViewer Grid.Column="0" Margin="16">
<ScrollViewer
Grid.Column="0"
Margin="16"
VerticalScrollBarVisibility="Hidden">
<StackPanel>
<shvc:BottomTextControl
MaxWidth="80"
@@ -255,6 +260,9 @@
ItemsSource="{Binding Weapons}"
SelectedItem="{Binding Selected, Mode=TwoWay}"
SelectionMode="Single">
<mxi:Interaction.Behaviors>
<shcb:SelectedItemInViewBehavior/>
</mxi:Interaction.Behaviors>
<GridView.ItemTemplate>
<DataTemplate>
<shvc:BottomTextControl Text="{Binding Name}">

View File

@@ -24,5 +24,5 @@ internal class PathMd5
/// <summary>
/// 显示名称
/// </summary>
public string DisplayName { get => System.IO.Path.GetFileName(Path.ToUri().LocalPath); }
public string DisplayName { get => System.IO.Path.GetFileName(Path); }
}