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