24 references to AdornerLocation
System.Data (24)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (22)
18public static readonly DependencyProperty AnchorProperty = DependencyProperty.RegisterAttached("Anchor", typeof(AdornerLocation), typeof(AnnotationAdorner), new FrameworkPropertyMetadata(AdornerLocation.None)); 65public static AdornerLocation GetAnchor(DependencyObject obj) 67return (AdornerLocation)obj.GetValue(AnnotationAdorner.AnchorProperty); 70public static void SetAnchor(DependencyObject obj, AdornerLocation anchor) 81internal static AdornerLocation FindAnchor(Point anchorPoint, Size desiredSize, Rect canvas) 86AdornerLocation anchor = AdornerLocation.None; 94anchor = AdornerLocation.BottomRight; 98if (anchor == AdornerLocation.None && anchorPoint.Y - desiredSize.Height >= canvas.Y) 100anchor = AdornerLocation.TopRight; 105if (anchor == AdornerLocation.None && anchorPoint.X - desiredSize.Width >= canvas.X && anchorPoint.Y - desiredSize.Height >= canvas.Y) 107anchor = AdornerLocation.TopLeft; 111if (anchor == AdornerLocation.None) 113anchor = AdornerLocation.BottomLeft; 134AdornerLocation anchor = AnnotationAdorner.GetAnchor(this); 135if (anchor == AdornerLocation.None) 152private static Point CalculateLocation(AdornerLocation anchor, Size adorneeSize, Size adornerSize) 158case AdornerLocation.BottomRight: 161case AdornerLocation.TopRight: 164case AdornerLocation.TopLeft: 167case AdornerLocation.BottomLeft:
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Annotations\WorkflowAnnotationAdornerService.cs (2)
30AnnotationAdorner.SetAnchor(adorner, AdornerLocation.None); 49AnnotationAdorner.SetAnchor(adorner, AdornerLocation.None);