else
{
sliderView.Size2D = new Size2D(640, 80);
- sliderView.Position2D = new Position2D(1056, 950);
+ sliderView.Position2D = new Position2D(1120, 950);
currentTime.Size2D = new Size2D(180, 32);
currentTime.Position2D = new Position2D(0, 48);
totalTime.Size2D = new Size2D(180, 32);
this.viewModel = viewModel;
collectionView = new CollectionView()
{
- BackgroundImage = Resources.GetImagePath() + "playing_list_bg.png",
+ BackgroundImage = GetBackgroundImagePath(ThemeManager.PlatformThemeId),
ItemsSource = this.viewModel.TrackListVM,
ItemsLayouter = new LinearLayouter(),
ItemTemplate = new DataTemplate(() =>
{
collectionView.ItemsSource = viewModel.TrackListVM;
}
+
+ private string GetBackgroundImagePath(string platformThemeId)
+ {
+ if (platformThemeId.Equals(AppConstants.DarkPlatformThemeId))
+ {
+ return Resources.GetImagePath() + "dark/list_view_bg.png";
+ }
+ else
+ {
+ return Resources.GetImagePath() + "light/list_view_bg.png";
+ }
+ }
+
}
}