private void button_Load_Click(object sender, RoutedEventArgs e) { foreach (TrackModel track in TraksListView.Items) { TrackModels.Add(track); } }
private void button_Play_Click(object sender, RoutedEventArgs e) { if (PlayListView.SelectedItem is TrackModel track) { SelectedTrack = track; TrackModels.Add(track); Searcallhgrid.Children.Clear(); Searcallhgrid.Children.Add(new Player()); } }