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