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