private void sidebarControl_Duplicate(object sender, SidebarControlEventArgs e) { foreach (TrackGroupWrapper wrapper in this.trackGroupBinding.Keys) { TrackGroupControl control = this.trackGroupBinding[wrapper]; control.DuplicateSelectedChildren(); if (control.IsSelected) { control.Duplicate(); } } }
private void sidebarControl_Duplicate(object sender, SidebarControlEventArgs e) { foreach (var current in trackGroupBinding.Keys) { TrackGroupControl trackGroupControl = trackGroupBinding[current]; trackGroupControl.DuplicateSelectedChildren(); if (trackGroupControl.IsSelected) { trackGroupControl.Duplicate(); } } }