public PlaybackControl() { InitializeComponent(); DataContext = this; ShuffleAllCommand = new Command(() => ShuffleAll?.Invoke(this, EventArgs.Empty)); PlayAllCommand = new Command(() => PlayAll?.Invoke(this, EventArgs.Empty)); }
private void ShuffleAll_Click(object sender, RoutedEventArgs e) { ShuffleAll?.Invoke(this, EventArgs.Empty); ShuffleAllCommand?.Execute(EventArgs.Empty); }