make it look prettier

This commit is contained in:
Alex
2025-08-08 00:08:45 -07:00
parent 78961fa8c2
commit bc8da38329
7 changed files with 49 additions and 30 deletions
+9 -3
View File
@@ -8,13 +8,19 @@
<DockPanel>
<ContentControl Name="SelectionInfo" DockPanel.Dock="Right" Width="250">
<StackPanel Margin="12">
<Image Source="/Assets/jacket-placeholder.png"/>
<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"/>
<TextBlock Name="InfoArtistText" Text="Artist" HorizontalAlignment="Center"/>
<TextBlock Name="InfoSourceText" Text="Source" HorizontalAlignment="Center"/>
<UserControl Margin="0 24 0 0">
</UserControl>
</StackPanel>
</ContentControl>
<DockPanel Margin="0 0 8 0">
<DockPanel Margin="0 0 0 8" DockPanel.Dock="Top">
<DockPanel Margin="0 4 0 8" DockPanel.Dock="Top">
<ComboBox DockPanel.Dock="Right" Width="160" PlaceholderText="Source filter" Name="SourceFilter"/>
<TextBox Margin="0 0 8 0" Watermark="Search for title, artist, charter..."/>
<TextBox Margin="0 0 8 0" Watermark="Search for title, artist, designer..."/>
</DockPanel>
<UserControl Background="{DynamicResource DataGridContentBackground}">
<DataGrid Name="ListingTable" IsReadOnly="True" SelectionMode="Extended" ItemsSource="{Binding SongCollection}">
+9 -7
View File
@@ -26,13 +26,15 @@ public partial class Selection : Panel
DataContext = this;
// test data
SongCollection.Add(
new Song { Id = "S00-000", Name = "A Name", Artist = "An Artist", Source = Consts.NUM_SOURCE[2] }
);
SongCollection.Add(
new Song { Id = "S00-000", Name = "A Name", Artist = "An Artist", Source = Consts.NUM_SOURCE[3] }
);
if (SongCollection.Count == 0)
{
SongCollection.Add(
new Song { Id = "S00-000", Name = "A Name", Artist = "An Artist", Source = Consts.NUM_SOURCE[2] }
);
SongCollection.Add(
new Song { Id = "S00-001", Name = "A Name", Artist = "An Artist", Source = Consts.NUM_SOURCE[3] }
);
}
}
private void OnSongsChg(object? sender, NotifyCollectionChangedEventArgs e)