tweak selection view

This commit is contained in:
Alex
2025-08-20 22:58:55 -07:00
parent e51be5373a
commit 8faf785e4f
5 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -18,6 +18,6 @@
</ToolTip.Tip>
</Canvas>
<TextBlock Name="DesignerTxt" Text="muskit" HorizontalAlignment="Center" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
<TextBlock Name="DesignerTxt" Text="Charter" TextWrapping="Wrap" TextAlignment="Center" HorizontalAlignment="Center" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
</StackPanel>
</UserControl>
+3 -4
View File
@@ -21,11 +21,10 @@
<StackPanel Name="SelectionInfo">
<TextBlock Name="InfoId" FontFamily="monospace" Text="S00-000" HorizontalAlignment="Center"/>
<Image Name="InfoImageJacket" Margin="24 0 24 0" Source="/Assets/imgs/jacket-placeholder.png"/>
<TextBlock Name="InfoNameText" Text="Name" FontWeight="Bold" HorizontalAlignment="Center" Margin="0 10 0 0" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
<TextBlock Name="InfoArtistText" Text="Artist" HorizontalAlignment="Center" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
<TextBlock Name="InfoNameText" Text="Name" FontWeight="Bold" TextTrimming="WordEllipsis" TextAlignment="Center" HorizontalAlignment="Center" Margin="0 10 0 0" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
<TextBlock Name="InfoArtistText" Text="Artist" TextTrimming="CharacterEllipsis" TextAlignment="Center" HorizontalAlignment="Center" ToolTip.Tip="{Binding RelativeSource={RelativeSource Self}, Path=Text}"/>
<TextBlock Name="InfoSourceText" Text="Source" HorizontalAlignment="Center" Margin="0 6 0 0"/>
<StackPanel Name="ChartInfoGroup" Margin="0 20 0 0">
</StackPanel>
<StackPanel Name="ChartInfoGroup" Margin="0 20 0 0"/>
</StackPanel>
</TabItem>
<TabItem Header="Filters" FontSize="16">
+3 -3
View File
@@ -11,7 +11,7 @@ namespace MercuryConverter.UI.Views;
public partial class Selection : Panel
{
public static ObservableRangeCollection<Song> selections = new();
public static ObservableRangeCollection<Song> Selections { get; } = new();
public Selection()
{
@@ -62,13 +62,13 @@ public partial class Selection : Panel
private void OnSelectionChange(object? sender, SelectionChangedEventArgs e)
{
selections.Clear();
Selections.Clear();
List<Song> sels = new();
foreach (Song s in ListingTable.SelectedItems)
{
sels.Add(s);
}
selections.AddRange(sels);
Selections.AddRange(sels);
if (ListingTable.SelectedItems.Count > 0)
{