public PlaylistView() { // Setup the XAML InitializeComponent(); // Set the data context DataContext = ViewModel; Unloaded += (s, e) => { ViewModel.Dispose(); }; }
public PlaylistView() { // Setup the XAML InitializeComponent(); // Set the data context DataContext = ViewModel; Unloaded += (s, e) => { ViewModel.Dispose(); }; }