mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix wiki avatar & weapon select item in view
This commit is contained in:
@@ -118,6 +118,9 @@
|
|||||||
ItemsSource="{Binding Avatars}"
|
ItemsSource="{Binding Avatars}"
|
||||||
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
||||||
SelectionMode="Single">
|
SelectionMode="Single">
|
||||||
|
<mxi:Interaction.Behaviors>
|
||||||
|
<shcb:SelectedItemInViewBehavior/>
|
||||||
|
</mxi:Interaction.Behaviors>
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -592,6 +595,9 @@
|
|||||||
ItemsSource="{Binding Avatars}"
|
ItemsSource="{Binding Avatars}"
|
||||||
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
||||||
SelectionMode="Single">
|
SelectionMode="Single">
|
||||||
|
<mxi:Interaction.Behaviors>
|
||||||
|
<shcb:SelectedItemInViewBehavior/>
|
||||||
|
</mxi:Interaction.Behaviors>
|
||||||
<GridView.ItemTemplate>
|
<GridView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<shvc:BottomTextControl Text="{Binding Name}">
|
<shvc:BottomTextControl Text="{Binding Name}">
|
||||||
|
|||||||
@@ -87,6 +87,9 @@
|
|||||||
ItemsSource="{Binding Weapons}"
|
ItemsSource="{Binding Weapons}"
|
||||||
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
||||||
SelectionMode="Single">
|
SelectionMode="Single">
|
||||||
|
<mxi:Interaction.Behaviors>
|
||||||
|
<shcb:SelectedItemInViewBehavior/>
|
||||||
|
</mxi:Interaction.Behaviors>
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<Grid>
|
<Grid>
|
||||||
@@ -113,7 +116,6 @@
|
|||||||
</SplitView.Pane>
|
</SplitView.Pane>
|
||||||
<SplitView.Content>
|
<SplitView.Content>
|
||||||
<ScrollViewer>
|
<ScrollViewer>
|
||||||
|
|
||||||
<StackPanel
|
<StackPanel
|
||||||
MaxWidth="800"
|
MaxWidth="800"
|
||||||
Margin="0,0,16,0"
|
Margin="0,0,16,0"
|
||||||
@@ -134,7 +136,10 @@
|
|||||||
<mxi:Interaction.Behaviors>
|
<mxi:Interaction.Behaviors>
|
||||||
<shcb:AutoHeightBehavior TargetHeight="1024" TargetWidth="2048"/>
|
<shcb:AutoHeightBehavior TargetHeight="1024" TargetWidth="2048"/>
|
||||||
</mxi:Interaction.Behaviors>
|
</mxi:Interaction.Behaviors>
|
||||||
<ScrollViewer Grid.Column="0" Margin="16">
|
<ScrollViewer
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="16"
|
||||||
|
VerticalScrollBarVisibility="Hidden">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<shvc:BottomTextControl
|
<shvc:BottomTextControl
|
||||||
MaxWidth="80"
|
MaxWidth="80"
|
||||||
@@ -255,6 +260,9 @@
|
|||||||
ItemsSource="{Binding Weapons}"
|
ItemsSource="{Binding Weapons}"
|
||||||
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
SelectedItem="{Binding Selected, Mode=TwoWay}"
|
||||||
SelectionMode="Single">
|
SelectionMode="Single">
|
||||||
|
<mxi:Interaction.Behaviors>
|
||||||
|
<shcb:SelectedItemInViewBehavior/>
|
||||||
|
</mxi:Interaction.Behaviors>
|
||||||
<GridView.ItemTemplate>
|
<GridView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<shvc:BottomTextControl Text="{Binding Name}">
|
<shvc:BottomTextControl Text="{Binding Name}">
|
||||||
|
|||||||
@@ -24,5 +24,5 @@ internal class PathMd5
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示名称
|
/// 显示名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string DisplayName { get => System.IO.Path.GetFileName(Path.ToUri().LocalPath); }
|
public string DisplayName { get => System.IO.Path.GetFileName(Path); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user