113 references to FreeFormPanel
System.Data (113)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (4)
40
private
FreeFormPanel
panel;
42
public AutoConnectAdorner(UIElement adornedElement,
FreeFormPanel
panel, AutoConnectDirections directions)
48
Size size =
FreeFormPanel
.GetChildSize(this.AdornedElement);
141
Size size =
FreeFormPanel
.GetChildSize(this.AdornedElement);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectHelper.cs (12)
22
private
FreeFormPanel
panel = null;
25
public AutoConnectHelper(
FreeFormPanel
panel)
54
Size size =
FreeFormPanel
.GetChildSize(target);
55
Point location =
FreeFormPanel
.GetLocation(target);
120
Point location =
FreeFormPanel
.GetLocation(autoConnectTarget);
121
Size size =
FreeFormPanel
.GetChildSize(autoConnectTarget);
146
dropPoint.Offset(
FreeFormPanel
.GridSize,
FreeFormPanel
.GridSize);
278
Point shapeLocation =
FreeFormPanel
.GetLocation(shape);
279
Size shapeSize =
FreeFormPanel
.GetChildSize(shape);
307
List<Rect> hitTestRects = CreateHitTestRects(
FreeFormPanel
.GetLocation(target),
FreeFormPanel
.GetChildSize(target));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
22
Size size =
FreeFormPanel
.GetChildSize(this.AdornedElement);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (14)
18
UIElement srcShape =
FreeFormPanel
.GetSourceConnectionPoint(connector).ParentDesigner;
19
UIElement destShape =
FreeFormPanel
.GetDestinationConnectionPoint(connector).ParentDesigner;
20
Point srcLocation =
FreeFormPanel
.GetLocation(srcShape);
21
Point destLocation =
FreeFormPanel
.GetLocation(destShape);
22
Size srcSize =
FreeFormPanel
.GetChildSize(srcShape);
23
Size destSize =
FreeFormPanel
.GetChildSize(destShape);
56
UIElement srcShape =
FreeFormPanel
.GetSourceConnectionPoint(connector).ParentDesigner;
57
UIElement destShape =
FreeFormPanel
.GetDestinationConnectionPoint(connector).ParentDesigner;
58
Point srcLocation =
FreeFormPanel
.GetLocation(srcShape);
59
Point destLocation =
FreeFormPanel
.GetLocation(destShape);
60
Size srcSize =
FreeFormPanel
.GetChildSize(srcShape);
61
Size destSize =
FreeFormPanel
.GetChildSize(destShape);
101
dropLocation.Offset(
FreeFormPanel
.GridSize,
FreeFormPanel
.GridSize);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPoint.cs (1)
115
Point topLeft =
FreeFormPanel
.GetLocation(parent);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\Connector.cs (7)
67
private
FreeFormPanel
panel = null;
124
ConnectionPoint sourceConnectionPoint =
FreeFormPanel
.GetSourceConnectionPoint(this);
138
ConnectionPoint destinationConnectionPoint =
FreeFormPanel
.GetDestinationConnectionPoint(this);
162
private
FreeFormPanel
Panel
168
this.panel = VisualTreeUtils.FindVisualAncestor<
FreeFormPanel
>(this);
303
UIElement sourceDesigner = VirtualizedContainerService.TryGetVirtualizedElement(
FreeFormPanel
.GetSourceConnectionPoint(this.Owner).ParentDesigner);
305
UIElement destinationDesigner = VirtualizedContainerService.TryGetVirtualizedElement(
FreeFormPanel
.GetDestinationConnectionPoint(this.Owner).ParentDesigner);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorCreationAdorner.cs (1)
30
Pen renderPen = new Pen(renderBrush,
FreeFormPanel
.ConnectorEditorThickness);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (8)
29
FreeFormPanel
parentPanel;
31
public ConnectorEditor(
FreeFormPanel
panel, Connector connector)
109
ConnectionPoint srcConnectionPoint =
FreeFormPanel
.GetSourceConnectionPoint(this.Connector);
459
targetConnPt =
FreeFormPanel
.ConnectionPointHitTest(newPoint, connPtsAdorner);
465
ConnectionPoint destConnPt =
FreeFormPanel
.GetDestinationConnectionPoint(this.editedConnector);
479
ConnectionPoint srcConnPt =
FreeFormPanel
.GetSourceConnectionPoint(this.editedConnector);
602
renderBrush.Opacity =
FreeFormPanel
.ConnectorEditorOpacity;
603
Pen renderPen = new Pen(new SolidColorBrush(WorkflowDesignerColors.WorkflowViewElementSelectedBorderColor),
FreeFormPanel
.ConnectorEditorThickness);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (22)
55
internal static Point[] Route(
FreeFormPanel
panel, Point srPoint, ConnectionPoint destConnPoint)
59
return Route(panel, srPoint,
FreeFormPanel
.GetLocationRelativeToOutmostPanel(destConnPoint), null,
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(destConnPoint), null, destElement);
63
internal static Point[] Route(
FreeFormPanel
panel, ConnectionPoint srcConnPoint, Point destPoint)
67
return Route(panel,
FreeFormPanel
.GetLocationRelativeToOutmostPanel(srcConnPoint), destPoint,
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(srcConnPoint), null, srcElement, null);
71
internal static Point[] Route(
FreeFormPanel
panel, ConnectionPoint srcConnectionPoint, MouseEventArgs e)
80
ConnectionPoint destConnPoint =
FreeFormPanel
.ConnectionPointHitTest(e.GetPosition(panel), destConnPtsAdorner);
83
return Route(panel,
FreeFormPanel
.GetLocationRelativeToOutmostPanel(srcConnectionPoint),
FreeFormPanel
.GetLocationRelativeToOutmostPanel(destConnPoint),
84
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(srcConnectionPoint),
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(destConnPoint), srcConnectionPoint.ParentDesigner, destConnPtsAdorner.AdornedElement);
99
internal static Point[] Route(
FreeFormPanel
panel, ConnectionPoint srcConnPoint, ConnectionPoint destConnPoint)
104
return Route(panel,
FreeFormPanel
.GetLocationRelativeToOutmostPanel(srcConnPoint),
FreeFormPanel
.GetLocationRelativeToOutmostPanel(destConnPoint),
105
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(srcConnPoint),
FreeFormPanel
.GetEdgeRelativeToOutmostPanel(destConnPoint), srcElement, destElement);
120
static void AddExcludedAndSrcDestRects(
FreeFormPanel
outmostPanel,
FreeFormPanel
panel, Point srcPoint, Point destPoint, UIElement srcElement, UIElement destElement, List<Rect> excludedRects, List<Rect> srcDestRects)
133
Rect rect = new Rect(Point.Add(panel.TranslatePoint(
FreeFormPanel
.GetLocation(child), outmostPanel), new Vector(margin.Left, margin.Top)), childSize);
153
FreeFormPanel
childPanel = ((INestedFreeFormPanelContainer)element).GetChildFreeFormPanel();
163
internal static Point[] Route(
FreeFormPanel
panel, Point srcPoint, Point destPoint, List<Point> srcEdge, List<Point> destEdge, UIElement srcElement, UIElement destElement)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (41)
24
public static readonly DependencyProperty ChildSizeProperty = DependencyProperty.RegisterAttached("ChildSize", typeof(Size), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata());
25
public static readonly DependencyProperty LocationProperty = DependencyProperty.RegisterAttached("Location", typeof(Point), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata(new Point(-1, -1)));
26
public static readonly DependencyProperty RequiredWidthProperty = DependencyProperty.Register("RequiredWidth", typeof(Double), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata(double.NaN));
27
public static readonly DependencyProperty RequiredHeightProperty = DependencyProperty.Register("RequiredHeight", typeof(Double), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata(double.NaN));
28
public static readonly DependencyProperty DestinationConnectionPointProperty = DependencyProperty.RegisterAttached("DestinationConnectionPoint", typeof(ConnectionPoint), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata());
29
public static readonly DependencyProperty SourceConnectionPointProperty = DependencyProperty.RegisterAttached("SourceConnectionPoint", typeof(ConnectionPoint), typeof(
FreeFormPanel
), new FrameworkPropertyMetadata());
30
public static readonly DependencyProperty DisabledProperty = DependencyProperty.Register("Disabled", typeof(bool), typeof(
FreeFormPanel
), new UIPropertyMetadata(false));
31
public static readonly DependencyProperty AutoConnectContainerProperty = DependencyProperty.Register("AutoConnectContainer", typeof(IAutoConnectContainer), typeof(
FreeFormPanel
), new UIPropertyMetadata(null));
50
lastYPosition =
FreeFormPanel
.TopStackingMargin;
64
return (Size)obj.GetValue(
FreeFormPanel
.ChildSizeProperty);
69
obj.SetValue(
FreeFormPanel
.ChildSizeProperty, size);
74
get { return (double)GetValue(
FreeFormPanel
.RequiredHeightProperty); }
75
private set { SetValue(
FreeFormPanel
.RequiredHeightProperty, value); }
80
get { return (double)GetValue(
FreeFormPanel
.RequiredWidthProperty); }
81
private set { SetValue(
FreeFormPanel
.RequiredWidthProperty, value); }
102
moveDir = new Vector(0,
FreeFormPanel
.GridSize);
105
moveDir = new Vector(0, -
FreeFormPanel
.GridSize);
108
moveDir = new Vector(
FreeFormPanel
.GridSize, 0);
111
moveDir = new Vector(-
FreeFormPanel
.GridSize, 0);
172
return (ConnectionPoint)obj.GetValue(
FreeFormPanel
.DestinationConnectionPointProperty);
177
obj.SetValue(
FreeFormPanel
.DestinationConnectionPointProperty, connectionPoint);
182
return (ConnectionPoint)obj.GetValue(
FreeFormPanel
.SourceConnectionPointProperty);
187
obj.SetValue(
FreeFormPanel
.SourceConnectionPointProperty, connectionPoint);
192
return (Point)obj.GetValue(
FreeFormPanel
.LocationProperty);
197
obj.SetValue(
FreeFormPanel
.LocationProperty, point);
275
FreeFormPanel
GetOutmostPanel()
302
FreeFormPanel
panel = VisualTreeUtils.FindVisualAncestor<
FreeFormPanel
>(adorner.AdornedElement);
306
internal static ConnectionPoint ConnectionPointHitTest(Point hitPoint, List<ConnectionPoint> connectionPoints,
FreeFormPanel
panel)
309
FreeFormPanel
outmost = panel.GetOutmostPanel();
338
pt =
FreeFormPanel
.GetLocation(Children[i]);
413
Point srcPoint =
FreeFormPanel
.GetLocationRelativeToOutmostPanel(
FreeFormPanel
.GetSourceConnectionPoint(connectorChild));
414
Point destPoint =
FreeFormPanel
.GetLocationRelativeToOutmostPanel(
FreeFormPanel
.GetDestinationConnectionPoint(connectorChild));
432
if (!child.DesiredSize.Equals(((Size)
FreeFormPanel
.GetChildSize(child))))
434
FreeFormPanel
.SetChildSize(child, child.DesiredSize);
436
pt =
FreeFormPanel
.GetLocation(child);
441
FreeFormPanel
.SetLocation(child, pt);
597
Point[] pts = ConnectorRouter.Route(this,
FreeFormPanel
.GetSourceConnectionPoint(connector),
FreeFormPanel
.GetDestinationConnectionPoint(connector));
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\INestedFreeFormPanelContainer.cs (2)
9
FreeFormPanel
GetChildFreeFormPanel();
10
FreeFormPanel
GetOutmostFreeFormPanel();