3 types derived from WorkflowViewElement
System.Data (3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ActivityDesigner.cs (1)
23
public class ActivityDesigner :
WorkflowViewElement
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ErrorActivity.cs (1)
73
internal class ErrorActivityView :
WorkflowViewElement
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerWithHeader.cs (1)
13
class DesignerWithHeader :
WorkflowViewElement
1 instantiation of WorkflowViewElement
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
104
WorkflowViewElement errorElement = new
WorkflowViewElement
();
255 references to WorkflowViewElement
System.Data (255)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (1)
138
DesignerView designerView = ((
WorkflowViewElement
)AdornedElement).Context.Services.GetService<DesignerView>();
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationManager.cs (2)
21
private
WorkflowViewElement
workflowViewElement;
38
internal AnnotationManager(
WorkflowViewElement
workflowViewElement)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (4)
112
WorkflowViewElement
element = modelItem.View as
WorkflowViewElement
;
125
WorkflowViewElement
element = modelItem.View as
WorkflowViewElement
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (30)
74
static void AddChildContainer(
WorkflowViewElement
viewElement, ICompositeView sourceContainer)
95
static HashSet<ICompositeView> GetChildContainers(
WorkflowViewElement
workflowViewElement)
110
WorkflowViewElement
parent = GetParentViewElement(container);
119
static
WorkflowViewElement
GetParentViewElement(ICompositeView container)
127
internal static
WorkflowViewElement
GetParentViewElement(DependencyObject obj)
129
while (obj != null && !(obj is
WorkflowViewElement
))
133
return obj as
WorkflowViewElement
;
218
WorkflowViewElement
rootView = view.RootDesigner as
WorkflowViewElement
;
302
ICompositeView container = (ICompositeView)DragDropHelper.GetCompositeView((
WorkflowViewElement
)modelItem.View);
377
List<
WorkflowViewElement
> parentViewElements = GetSelectableParentViewElements(modelItem.View as
WorkflowViewElement
);
379
foreach (
WorkflowViewElement
view in parentViewElements)
389
static List<
WorkflowViewElement
> GetSelectableParentViewElements(
WorkflowViewElement
childElement)
391
List<
WorkflowViewElement
> parentViewElements = new List<
WorkflowViewElement
>();
416
internal static void DoPaste(EditingContext context, Point pastePoint,
WorkflowViewElement
pastePointReference)
480
if (null != pasteModelItem && null != pasteModelItem.View && pasteModelItem.View is
WorkflowViewElement
)
482
pasteContainer = ((
WorkflowViewElement
)pasteModelItem.View).ActiveCompositeView;
494
if (pasteContainer != null && pasteContainer is
WorkflowViewElement
)
496
WorkflowViewElement
view = pasteContainer as
WorkflowViewElement
;
504
WorkflowViewElement
view = pasteModelItem.View as
WorkflowViewElement
;
515
HashSet<ICompositeView> childrenContainers = CutCopyPasteHelper.GetChildContainers(pasteModelItem.View as
WorkflowViewElement
);
518
pasteContainer = (ICompositeView)DragDropHelper.GetCompositeView((
WorkflowViewElement
)pasteModelItem.View);
704
return null != item.View && item.View is
WorkflowViewElement
&&
705
null != ((
WorkflowViewElement
)item.View).ModelItem &&
706
CanCopy(((
WorkflowViewElement
)item.View).ModelItem.ItemType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DeleteHelper.cs (5)
26
p => (null != p.View && p.View is
WorkflowViewElement
&& !p.View.Equals(designerView.RootDesigner)));
43
var toDelete = selection.SelectedObjects.Where(p => null != p.View && p.View is
WorkflowViewElement
&& !p.View.Equals(designerView.RootDesigner));
52
ICompositeView container = (ICompositeView)DragDropHelper.GetCompositeView((
WorkflowViewElement
)item.View);
74
WorkflowViewElement
rootView = view.RootDesigner as
WorkflowViewElement
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (28)
57
public static void SetCompositeView(
WorkflowViewElement
workflowViewElement, UIElement dragSource)
71
public static UIElement GetCompositeView(
WorkflowViewElement
workflowViewElement)
80
internal static DataObject DoDragMoveImpl(IEnumerable<
WorkflowViewElement
> draggedViewElements, Point referencePoint)
84
WorkflowViewElement
viewElement = null;
85
foreach (
WorkflowViewElement
view in draggedViewElements)
127
foreach (
WorkflowViewElement
view in draggedViewElements)
140
public static DragDropEffects DoDragMove(
WorkflowViewElement
draggedViewElement, Point referencePoint)
419
if (!(dropTarget is
WorkflowViewElement
))
421
dropTarget = VisualTreeUtils.FindVisualAncestor<
WorkflowViewElement
>(dropTarget);
605
.GetCompositeView(modelItem.View as
WorkflowViewElement
) as ICompositeView;
688
internal static void SetDragDropMovedViewElements(DragEventArgs e, IEnumerable<
WorkflowViewElement
> movedViewElements)
710
internal static IEnumerable<
WorkflowViewElement
> GetDragDropMovedViewElements(DataObject data)
719
return (IEnumerable<
WorkflowViewElement
>)data.GetData(MovedViewElementsFormat);
729
internal static Dictionary<
WorkflowViewElement
, Point> GetViewElementRelativeLocations(IEnumerable<
WorkflowViewElement
> viewElements)
732
Dictionary<
WorkflowViewElement
, Point> locations = new Dictionary<
WorkflowViewElement
, Point>();
734
foreach (
WorkflowViewElement
viewElement in viewElements)
761
foreach (
WorkflowViewElement
viewElement in viewElements)
768
internal static Dictionary<
WorkflowViewElement
, Point> GetDraggedViewElementRelativeLocations(DragEventArgs e)
770
List<
WorkflowViewElement
> draggedViewElements = new List<
WorkflowViewElement
>();
780
draggedViewElements.Add((
WorkflowViewElement
)draggedModelItem.View);
790
draggedViewElements.Add((
WorkflowViewElement
)draggedModelItem.View);
825
public ViewElementDragShadow(UIElement owner,
WorkflowViewElement
viewElement, Point offset, double scaleFactor)
844
public ViewElementDragShadow(UIElement owner, IEnumerable<
WorkflowViewElement
> viewElements, Point offset, double scaleFactor)
847
Dictionary<
WorkflowViewElement
, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);
850
foreach (
WorkflowViewElement
viewElement in viewElements)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ExpandButtonVisibilityConverter.cs (3)
27
WorkflowViewElement
viewElement = values[2] as
WorkflowViewElement
;
37
public static Visibility GetExpandCollapseButtonVisibility(
WorkflowViewElement
viewElement)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ICompositeView.cs (1)
17
void OnItemsPasted(List<object> itemsToPaste, List<object> metadata, Point pastePoint,
WorkflowViewElement
pastePointReference);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\GenericArgumentsUpdater.cs (1)
64
if (designerView.RootDesigner != null && ((
WorkflowViewElement
)designerView.RootDesigner).ModelItem == modelItem)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (2)
915
var
viewElement = container as
WorkflowViewElement
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (6)
52
WorkflowViewElement
lastWorkflowViewElement;
225
return includeOtherObjects || (typeof(
WorkflowViewElement
).IsAssignableFrom(viewService.GetDesignerType(type)));
678
WorkflowViewElement
viewElement = itemToFocus.View as
WorkflowViewElement
;
681
this.adornerLayer = AdornerLayer.GetAdornerLayer(viewElement as
WorkflowViewElement
);
775
return typeof(
WorkflowViewElement
).IsAssignableFrom(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
403
|| (!typeof(
WorkflowViewElement
).IsAssignableFrom(viewService.GetDesignerType(currentModelItem.ItemType)))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\ShowExpandedMultiValueConverter.cs (2)
31
WorkflowViewElement
viewElement = (
WorkflowViewElement
)values[6];
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\UndoUnit.cs (2)
35
designerRoot = ((
WorkflowViewElement
)designerView.RootDesigner).ModelItem;
44
ModelItem currentDesignerRoot = ((
WorkflowViewElement
)designerView.RootDesigner).ModelItem;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (17)
132
WorkflowViewElement
contextMenuTarget;
135
Func<
WorkflowViewElement
, bool, Visibility> navigateToParentFunction;
136
Func<
WorkflowViewElement
, bool, Visibility> navigateToChildFunction;
137
Func<
WorkflowViewElement
, BreakpointTypes> getBreakpointType;
441
this.contextMenuTarget = sender as
WorkflowViewElement
;
519
Action<
WorkflowViewElement
, FrameworkElement> contextMenuLoaded =
775
WorkflowViewElement
sourceElement = e.OriginalSource as
WorkflowViewElement
;
1093
ModelItem rootItem = ((
WorkflowViewElement
)this.RootDesigner).ModelItem;
1192
WorkflowViewElement
focusedElement = Keyboard.FocusedElement as
WorkflowViewElement
;
1426
if (selection.SelectionCount == 1 && selection.PrimarySelection.View is
WorkflowViewElement
)
1428
WorkflowViewElement
viewElement = (
WorkflowViewElement
)selection.PrimarySelection.View;
1455
Fx.Assert(selection.PrimarySelection.View is
WorkflowViewElement
, "selection.PrimarySelection.View should be WorkflowViewElement type.");
1457
WorkflowViewElement
viewElement = (
WorkflowViewElement
)selection.PrimarySelection.View;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (35)
63
DependencyProperty.RegisterReadOnly("FocusedViewElement", typeof(
WorkflowViewElement
), typeof(DesignerView), new UIPropertyMetadata(null));
89
internal
WorkflowViewElement
lastClickedDesigner;
144
ICollection<
WorkflowViewElement
> deepElements = VisualTreeUtils.PrunVisualTree<
WorkflowViewElement
>(this.RootDesigner);
145
foreach (
WorkflowViewElement
viewElement in deepElements)
321
public
WorkflowViewElement
FocusedViewElement
323
get { return (
WorkflowViewElement
)GetValue(FocusedViewElementProperty); }
441
WorkflowViewElement
root = this.RootDesigner as
WorkflowViewElement
;
453
return (typeof(
WorkflowViewElement
).IsAssignableFrom(viewService.GetDesignerType(current.ItemType)));
502
WorkflowViewElement
viewElement = newRoot.View as
WorkflowViewElement
;
510
WorkflowViewElement
view = parent.View as
WorkflowViewElement
;
527
WorkflowViewElement
view = parent.View as
WorkflowViewElement
;
539
ModelItem currentRootModelItem = (this.RootDesigner != null) ? ((
WorkflowViewElement
)this.RootDesigner).ModelItem : null;
596
WorkflowViewElement
focusedElement = Keyboard.FocusedElement as
WorkflowViewElement
;
640
if (typeof(
WorkflowViewElement
).IsAssignableFrom(source.GetType()))
649
this.FocusedViewElement = source as
WorkflowViewElement
;
709
if (!e.Handled && Keyboard.Modifiers == ModifierKeys.None && e.OriginalSource is
WorkflowViewElement
)
714
this.navigateToChildFunction((
WorkflowViewElement
)e.OriginalSource, true);
718
this.navigateToParentFunction((
WorkflowViewElement
)e.OriginalSource, true);
750
public void RegisterViewElement(
WorkflowViewElement
viewElement)
758
public void UnregisterViewElement(
WorkflowViewElement
viewElement)
835
var
root = this.RootDesigner as
WorkflowViewElement
;
967
WorkflowViewElement
previousRoot = (
WorkflowViewElement
)e.OldValue;
968
WorkflowViewElement
currentRoot = (
WorkflowViewElement
)e.NewValue;
1068
this.RootDesigner = (
WorkflowViewElement
)rootContainer.Child;
1407
WorkflowViewElement
rootDesigner = designerView.RootDesigner as
WorkflowViewElement
;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (9)
25
private List<
WorkflowViewElement
> views = new List<
WorkflowViewElement
>();
86
public void RegisterViewElement(
WorkflowViewElement
view)
94
public void UnregisterViewElement(
WorkflowViewElement
view)
196
WorkflowViewElement
view = VisualTreeUtils.FindVisualAncestor<
WorkflowViewElement
>(result.VisualHit);
270
foreach (
WorkflowViewElement
view in this.views)
320
WorkflowViewElement
view = item == null ? null : (item.View as
WorkflowViewElement
);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ViewCreatedEventArgs.cs (3)
16
private
WorkflowViewElement
view;
22
public ViewCreatedEventArgs(
WorkflowViewElement
view)
35
public
WorkflowViewElement
View
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (4)
27
if (typeof(
WorkflowViewElement
).IsAssignableFrom(parentDesignerType))
71
return typeof(
WorkflowViewElement
).IsAssignableFrom(viewType) && (!allowDrillIn || options == null || options.AllowDrillIn);
101
object isPinnedViewState = GetViewStateService(context).RetrieveViewState(modelItem,
WorkflowViewElement
.PinnedViewStateKey);
178
internal static void MeasureView(
WorkflowViewElement
view, bool measureAsCollapsed)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (7)
238
var
viewElement = view as
WorkflowViewElement
;
253
var
viewElement = view as
WorkflowViewElement
;
266
public
WorkflowViewElement
GetViewElement(ModelItem modelItem, ICompositeView sourceContainer)
268
WorkflowViewElement
itemView = (
WorkflowViewElement
)this.ViewService.GetView(modelItem);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (17)
38
public
WorkflowViewElement
GetViewElement(ModelItem modelItem)
40
WorkflowViewElement
viewElement = null;
51
if (modelItem.View != null && ((
WorkflowViewElement
)modelItem.View).Parent == null)
53
viewElement = (
WorkflowViewElement
)modelItem.View;
89
internal static void ShowErrorInViewElement(
WorkflowViewElement
errorElement, string windowText, string toolTipText)
102
private
WorkflowViewElement
GenerateErrorElement(ModelItem modelItem, string errorString)
104
WorkflowViewElement
errorElement = new WorkflowViewElement();
165
protected
WorkflowViewElement
CreateViewElement(ModelItem modelItem)
168
WorkflowViewElement
viewElement = null;
172
if (designerType != null && typeof(
WorkflowViewElement
).IsAssignableFrom(designerType))
174
viewElement = (
WorkflowViewElement
)Activator.CreateInstance(designerType);
179
internal
WorkflowViewElement
CreateDetachedViewElement(ModelItem modelItem)
181
WorkflowViewElement
viewElement = CreateViewElement(modelItem);
201
if (view is
WorkflowViewElement
)
203
return ((
WorkflowViewElement
)view).ModelItem;
226
shouldAppearOnBreadCrumb = (typeof(
WorkflowViewElement
).IsAssignableFrom(designerType) &&
233
shouldAppearOnBreadCrumb = typeof(
WorkflowViewElement
).IsAssignableFrom(designerType);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (17)
138
private List<
WorkflowViewElement
> ObjectList2WorkflowViewElementList(IEnumerable<object> droppedObjects)
140
List<
WorkflowViewElement
> movedViewElements = new List<
WorkflowViewElement
>();
145
WorkflowViewElement
view = (
WorkflowViewElement
)((ModelItem)droppedObject).View;
230
List<
WorkflowViewElement
> movedViewElements = ObjectList2WorkflowViewElementList(droppedObjects);
374
WorkflowViewElement
parentViewElement = GetParentWorkflowViewElement();
398
private
WorkflowViewElement
GetParentWorkflowViewElement()
402
while (parent != null && !(parent is
WorkflowViewElement
))
406
WorkflowViewElement
result = parent as
WorkflowViewElement
;
411
while (parent != null && !(parent is
WorkflowViewElement
))
415
result = parent as
WorkflowViewElement
;
551
DragDropHelper.SetDragDropMovedViewElements(args, new
WorkflowViewElement
[] { ((ModelItem)droppedObject).View as
WorkflowViewElement
});
656
WorkflowViewElement
parentViewElement = GetParentWorkflowViewElement();
706
void ICompositeView.OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint,
WorkflowViewElement
pastePointReference)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (9)
618
List<
WorkflowViewElement
> movedViewElements = new List<
WorkflowViewElement
>();
631
WorkflowViewElement
view = (modelItem == null) ? null : (modelItem.View as
WorkflowViewElement
);
757
WorkflowViewElement
dropTarget = null;
758
if (e.OriginalSource is
WorkflowViewElement
)
760
dropTarget = (
WorkflowViewElement
)e.OriginalSource;
764
dropTarget = VisualTreeUtils.FindFocusableParent<
WorkflowViewElement
>((UIElement)e.OriginalSource);
833
public void OnItemsPasted(List<object> itemsToPaste, List<object> metaData, Point pastePoint,
WorkflowViewElement
pastePointReference)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (49)
36
DependencyProperty.Register("ModelItem", typeof(ModelItem), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(
WorkflowViewElement
.OnModelItemChanged)));
38
DependencyProperty.Register("Context", typeof(EditingContext), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(null, new PropertyChangedCallback(
WorkflowViewElement
.OnContextChanged)));
40
DependencyProperty.Register("ExpandState", typeof(bool), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(true, new PropertyChangedCallback(
WorkflowViewElement
.OnExpandStateChanged)));
42
DependencyProperty.Register("PinState", typeof(bool), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(
WorkflowViewElement
.OnPinStateChanged)));
44
DependencyProperty.Register("ShowExpanded", typeof(bool), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(
WorkflowViewElement
.OnShowExpandedChanged)));
46
DependencyProperty.Register("IsRootDesigner", typeof(bool), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(false));
48
DependencyProperty.Register("IsReadOnly", typeof(bool), typeof(
WorkflowViewElement
), new FrameworkPropertyMetadata(false, new PropertyChangedCallback(
WorkflowViewElement
.OnReadOnlyChanged)));
59
WorkflowViewElement
viewElement = obj as
WorkflowViewElement
;
65
WorkflowViewElement
viewElement = obj as
WorkflowViewElement
;
72
WorkflowViewElement
viewElement = obj as
WorkflowViewElement
;
78
WorkflowViewElement
viewElement = obj as
WorkflowViewElement
;
84
WorkflowViewElement
viewElement = obj as
WorkflowViewElement
;
123
this.ViewStateService.StoreViewState(this.ModelItem,
WorkflowViewElement
.PinnedViewStateKey, newValue);
165
object pinViewState = this.ViewStateService.RetrieveViewState(this.ModelItem,
WorkflowViewElement
.PinnedViewStateKey);
210
modelItemBinding.Path = new PropertyPath(
WorkflowViewElement
.ModelItemProperty);
214
isRootDesignerBinding.Path = new PropertyPath(
WorkflowViewElement
.IsRootDesignerProperty);
227
expandStateBinding.Path = new PropertyPath(
WorkflowViewElement
.ExpandStateProperty);
231
pinStateBinding.Path = new PropertyPath(
WorkflowViewElement
.PinStateProperty);
250
BindingOperations.SetBinding(this,
WorkflowViewElement
.ShowExpandedProperty, multiBinding );
732
return p != null && p != p.Root && p.View != null && ((
WorkflowViewElement
)p.View).IsVisible &&
733
(DragDropHelper.GetCompositeView((
WorkflowViewElement
)p.View) as ICompositeView) != null;
900
WorkflowViewElement
viewElement = (
WorkflowViewElement
)dependencyObject;
904
void BeginDropAnimation(
WorkflowViewElement
target)
921
HashSet<
WorkflowViewElement
> draggedViews = new HashSet<
WorkflowViewElement
>();
931
WorkflowViewElement
view = (
WorkflowViewElement
)modelItem.View;
952
IEnumerable<
WorkflowViewElement
> movedViewElements = DragDropHelper.GetDragDropMovedViewElements(dataObject);
960
foreach (
WorkflowViewElement
view in movedViewElements)
990
foreach (
WorkflowViewElement
view in movedViewElements)
1005
BeginDropAnimation((
WorkflowViewElement
)movedItem.View);
1044
private Point GetRelativeLocation(IEnumerable<
WorkflowViewElement
> draggedViews)
1046
HashSet<
WorkflowViewElement
> viewElements = new HashSet<
WorkflowViewElement
>(draggedViews);
1051
Dictionary<
WorkflowViewElement
, Point> locations = DragDropHelper.GetViewElementRelativeLocations(viewElements);
1065
WorkflowViewElement
owner;
1067
public WorkflowViewElementAutomationPeer(
WorkflowViewElement
owner)