private void MenuItem_Click_AutoZoom_Stack_Units(object sender, RoutedEventArgs e) { MenuItem mi = (MenuItem)sender; ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext; RendererManager.AutoZoomGroupedByUnits(rslist); }
private void Executed_CmdAutoZoomAllGroupedByUnits(object sender, ExecutedRoutedEventArgs e) { foreach (IEnumerable <RenderSlice> rslist in stackercontrol.RenderSliceLists) { RendererManager.AutoZoomGroupedByUnits(rslist); } }
private void MenuItem_Click_AutoZoom_Selected_Units(object sender, RoutedEventArgs e) { MenuItem mi = (MenuItem)sender; ObservableCollection <RenderSlice> rslist = (ObservableCollection <RenderSlice>)mi.DataContext; IEnumerable <RenderSlice> selectedrs = this.GetSelectedRenderSlices(rslist); RendererManager.AutoZoomGroupedByUnits(selectedrs); }