cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DefaultCommandExtensionCallback.cs (24)
24defaultGestures.Add(DesignerView.GoToParentCommand,
26defaultGestures.Add(DesignerView.ExpandInPlaceCommand,
28defaultGestures.Add(DesignerView.ExpandAllCommand,
30defaultGestures.Add(DesignerView.CollapseCommand,
32defaultGestures.Add(DesignerView.CollapseAllCommand,
34defaultGestures.Add(DesignerView.RestoreCommand,
36defaultGestures.Add(DesignerView.ZoomInCommand,
40defaultGestures.Add(DesignerView.ZoomOutCommand,
44defaultGestures.Add(DesignerView.ToggleArgumentDesignerCommand,
46defaultGestures.Add(DesignerView.ToggleVariableDesignerCommand,
48defaultGestures.Add(DesignerView.ToggleImportsDesignerCommand,
50defaultGestures.Add(DesignerView.ToggleMiniMapCommand,
52defaultGestures.Add(DesignerView.CreateVariableCommand,
54defaultGestures.Add(DesignerView.CycleThroughDesignerCommand,
64defaultGestures.Add(DesignerView.MoveFocusCommand,
66defaultGestures.Add(DesignerView.ToggleSelectionCommand,
68defaultGestures.Add(DesignerView.CutCommand,
70defaultGestures.Add(DesignerView.CopyCommand,
72defaultGestures.Add(DesignerView.PasteCommand,
74defaultGestures.Add(DesignerView.SelectAllCommand,
76defaultGestures.Add(DesignerView.UndoCommand,
78defaultGestures.Add(DesignerView.RedoCommand,
127internal DesignerView Owner
133return this.ownerReference.Target as DesignerView;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (50)
39DependencyProperty.RegisterAttached("CommandMenuMode", typeof(CommandMenuMode), typeof(DesignerView), new UIPropertyMetadata(CommandMenuMode.FullCommandMenu));
42DependencyProperty.RegisterAttached("MenuItemOrigin", typeof(FrameworkElement), typeof(DesignerView));
45DependencyProperty.Register("MenuItemStyle", typeof(Style), typeof(DesignerView), new UIPropertyMetadata(null));
48DependencyProperty.Register("MenuSeparatorStyle", typeof(Style), typeof(DesignerView), new UIPropertyMetadata(null));
52public static readonly ICommand GoToParentCommand = new RoutedCommand("GoToParentCommand", typeof(DesignerView));
54public static readonly ICommand ExpandCommand = new RoutedCommand("ExpandCommand", typeof(DesignerView));
56public static readonly ICommand ExpandAllCommand = new RoutedCommand("ExpandAllCommand", typeof(DesignerView));
58public static readonly ICommand CollapseCommand = new RoutedCommand("CollapseCommand", typeof(DesignerView));
60public static readonly ICommand CollapseAllCommand = new RoutedCommand("CollapseAllCommand", typeof(DesignerView));
62public static readonly ICommand RestoreCommand = new RoutedCommand("RestoreCommand", typeof(DesignerView));
64public static readonly ICommand ExpandInPlaceCommand = new RoutedCommand("ExpandInPlaceCommand", typeof(DesignerView));
66public static readonly ICommand InsertBreakpointCommand = new RoutedCommand("InsertBreakpointCommand", typeof(DesignerView));
68public static readonly ICommand DeleteBreakpointCommand = new RoutedCommand("DeleteBreakpointParentCommand", typeof(DesignerView));
70public static readonly ICommand EnableBreakpointCommand = new RoutedCommand("EnableBreakpointCommand", typeof(DesignerView));
72public static readonly ICommand DisableBreakpointCommand = new RoutedCommand("DisableBreakpointCommand", typeof(DesignerView));
74public static readonly ICommand SaveAsImageCommand = new RoutedCommand("SaveAsImageCommand", typeof(DesignerView));
76public static readonly ICommand CopyAsImageCommand = new RoutedCommand("CopyAsImageCommand", typeof(DesignerView));
78public static readonly ICommand ZoomInCommand = new RoutedCommand("ZoomInCommand", typeof(DesignerView));
80public static readonly ICommand ZoomOutCommand = new RoutedCommand("ZoomOutCommand", typeof(DesignerView));
82public static readonly ICommand ToggleArgumentDesignerCommand = new RoutedCommand("ToggleArgumentDesignerCommand", typeof(DesignerView));
84public static readonly ICommand ToggleImportsDesignerCommand = new RoutedCommand("ToggleImportsDesignerCommand", typeof(DesignerView));
86public static readonly ICommand ToggleVariableDesignerCommand = new RoutedCommand("ToggleVariableDesignerCommand", typeof(DesignerView));
88public static readonly ICommand CreateVariableCommand = new RoutedCommand("CreateVariableCommand", typeof(DesignerView));
90public static readonly ICommand ToggleMiniMapCommand = new RoutedCommand("ToggleMinimapCommand", typeof(DesignerView));
92public static readonly ICommand CycleThroughDesignerCommand = new RoutedCommand("CycleThroughDesignerCommand", typeof(DesignerView));
94public static readonly ICommand CreateWorkflowElementCommand = new RoutedCommand("CreateWorkflowElementCommand", typeof(DesignerView));
96public static readonly ICommand CreateArgumentCommand = new RoutedCommand("CreateArgumentCommand", typeof(DesignerView));
98public static readonly ICommand CommitCommand = new RoutedCommand("CommitCommand", typeof(DesignerView));
100public static readonly ICommand FitToScreenCommand = new RoutedCommand("FitToScreenCommand", typeof(DesignerView));
102public static readonly ICommand ResetZoomCommand = new RoutedCommand("ResetZoomCommand", typeof(DesignerView));
104public static readonly ICommand MoveFocusCommand = new RoutedCommand("MoveFocusCommand", typeof(DesignerView));
106public static readonly ICommand ToggleSelectionCommand = new RoutedCommand("ToggleSelectionCommand", typeof(DesignerView));
108public static readonly ICommand CutCommand = new RoutedCommand("CutCommand", typeof(DesignerView));
110public static readonly ICommand CopyCommand = new RoutedCommand("CopyCommand", typeof(DesignerView));
112public static readonly ICommand PasteCommand = new RoutedCommand("PasteCommand", typeof(DesignerView));
114public static readonly ICommand SelectAllCommand = new RoutedCommand("SelectAllCommand", typeof(DesignerView));
116public static readonly ICommand UndoCommand = new RoutedCommand("UndoCommand", typeof(DesignerView));
118public static readonly ICommand RedoCommand = new RoutedCommand("RedoCommand", typeof(DesignerView));
120public static readonly ICommand AddAnnotationCommand = new RoutedCommand("AddAnnotationCommand", typeof(DesignerView));
122public static readonly ICommand EditAnnotationCommand = new RoutedCommand("EditAnnotationCommand", typeof(DesignerView));
124public static readonly ICommand DeleteAnnotationCommand = new RoutedCommand("DeleteAnnotationCommand", typeof(DesignerView));
126public static readonly ICommand ShowAllAnnotationCommand = new RoutedCommand("ShowAllAnnotationCommand", typeof(DesignerView));
128public static readonly ICommand HideAllAnnotationCommand = new RoutedCommand("HideAllAnnotationCommand", typeof(DesignerView));
130public static readonly ICommand DeleteAllAnnotationCommand = new RoutedCommand("DeleteAllAnnotationCommand", typeof(DesignerView));
471DesignerView.SetMenuItemOrigin(item, this.contextMenuTarget);
496.Where(p => DesignerView.GetMenuItemOrigin(p) != null)
505DesignerView.GetMenuItemOrigin(item).ContextMenu.Items.Insert(0, item);
506DesignerView.SetMenuItemOrigin(item, null);
1739DesignerView owner;
1741public ContextMenuItemStyleSelector(DesignerView owner)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (28)
52DependencyProperty.Register("RootDesigner", typeof(UIElement), typeof(DesignerView), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(DesignerView.OnRootDesignerChanged)));
55DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(DesignerView), new UIPropertyMetadata(OnIsReadOnlyChanged));
58DependencyProperty.RegisterReadOnly("ActivitySchema", typeof(ModelItem), typeof(DesignerView), new UIPropertyMetadata(OnActivitySchemaChanged));
63DependencyProperty.RegisterReadOnly("FocusedViewElement", typeof(WorkflowViewElement), typeof(DesignerView), new UIPropertyMetadata(null));
66DependencyProperty.Register("InPanMode", typeof(bool), typeof(DesignerView), new UIPropertyMetadata(OnInPanModeChanged));
70internal static DependencyProperty ShouldExpandAllProperty = DependencyProperty.Register("ShouldExpandAll", typeof(bool), typeof(DesignerView), new PropertyMetadata(false, new PropertyChangedCallback(OnExpandAllCollapseAllChanged)));
71internal static DependencyProperty ShouldCollapseAllProperty = DependencyProperty.Register("ShouldCollapseAll", typeof(bool), typeof(DesignerView), new PropertyMetadata(false, new PropertyChangedCallback(OnExpandAllCollapseAllChanged)));
169object expandAllState = viewStateService.RetrieveViewState(modelTreeManager.Root, DesignerView.ShouldExpandAllProperty.Name);
176object collapseAllState = viewStateService.RetrieveViewState(modelTreeManager.Root, DesignerView.ShouldCollapseAllProperty.Name);
251((DesignerView)o).OnExpandAllCollapseAllChanged(e);
858DesignerView control = (DesignerView)dependencyObject;
864DesignerView control = (DesignerView)dependencyObject;
870DesignerView designerView = (DesignerView)dependencyObject;
876DesignerView designerView = (DesignerView)dependencyObject;
1404DesignerView designerView = this.Context.Services.GetService<DesignerView>();
1426DesignerView designerView = this.context.Services.GetService<DesignerView>();
1485DesignerView view;
1489internal ZoomToTicksConverter(DesignerView designer, Slider zoomSlider, ComboBox zoomPicker)
1744public DesignerViewProxy(DesignerView designerView)
1751DesignerView designerView = this.reference.Target as DesignerView;