mirror of
https://github.com/muskit/MercuryConverter.git
synced 2026-06-02 20:24:26 -07:00
make it look prettier
This commit is contained in:
@@ -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}">
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user