57 references to AdornedElement
PresentationFramework (32)
src\Framework\MS\Internal\Controls\InkCanvasSelectionAdorner.cs (2)
328
if ( count == 1 && ((InkCanvasInnerCanvas)
AdornedElement
).InkCanvas.GetSelectedStrokes().Count == 0 )
431
Rect selectionRect = ((InkCanvasInnerCanvas)
AdornedElement
).InkCanvas.GetSelectionBounds();
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (4)
147
if (ReferenceElement != null &&
AdornedElement
!= null &&
148
AdornedElement
.IsMeasureValid &&
149
!DoubleUtil.AreClose(ReferenceElement.DesiredSize,
AdornedElement
.DesiredSize)
183
Visibility desired =
AdornedElement
.IsVisible ? Visibility.Visible : Visibility.Collapsed;
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
103
return adorner == null ? null : TemplatedAdorner.
AdornedElement
;
src\Framework\System\Windows\Documents\Adorner.cs (4)
81
desiredSize = new Size(
AdornedElement
.RenderSize.Width,
AdornedElement
.RenderSize.Height);
225
binding.Source = adorner.
AdornedElement
;
237
return !DoubleUtil.AreClose(
AdornedElement
.RenderSize, oldSize);
src\Framework\System\Windows\Documents\AdornerLayer.cs (8)
196
ArrayList adornerInfos = ElementMap[adorner.
AdornedElement
] as ArrayList;
211
RemoveAdornerInfo(ElementMap, adorner, adorner.
AdornedElement
);
534
AddAdornerInfo(ElementMap, adornerInfo, adorner.
AdornedElement
);
540
UpdateAdorner(adorner.
AdornedElement
);
576
ArrayList adornerInfos = ElementMap[adorner.
AdornedElement
] as ArrayList;
592
UpdateAdorner(adorner.
AdornedElement
);
602
ArrayList adornerInfos = ElementMap[adorner.
AdornedElement
] as ArrayList;
749
clip = GetClipGeometry(adornerInfo.Adorner.
AdornedElement
, adornerInfo.Adorner);
src\Framework\System\windows\Documents\CaretElement.cs (4)
559
Adorner[] adorners = adornerLayer.GetAdorners(this.
AdornedElement
);
570
adornerLayer.Update(this.
AdornedElement
);
668
FlowDirection flowDirection = (FlowDirection)
AdornedElement
.GetValue(FlowDirectionProperty);
713
FlowDirection flowDirection = (FlowDirection)
AdornedElement
.GetValue(FlowDirectionProperty);
src\Framework\System\Windows\Documents\ColumnResizeAdorner.cs (1)
138
adornerLayer.Update(
AdornedElement
);
src\Framework\System\Windows\Documents\CompositionAdorner.cs (3)
132
Visual parent2d = VisualTreeHelper.GetParent(this.
AdornedElement
) as Visual;
138
GeneralTransform transform =
AdornedElement
.TransformToAncestor(parent2d);
356
adornerLayer.Update(
AdornedElement
);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (5)
599
desiredSize =
AdornedElement
.RenderSize;
629
if (!(contentHost is Visual) || !
AdornedElement
.IsAncestorOf((Visual)contentHost))
758
if (contentHost is Visual &&
AdornedElement
.IsAncestorOf((Visual)contentHost))
760
_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(
AdornedElement
);
797
return !DoubleUtil.AreClose(
AdornedElement
.RenderSize, oldSize);
System.Activities.Core.Presentation (8)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (3)
663
UIElement srcElement = ((Adorner)sender).
AdornedElement
as UIElement;
671
UIElement adornedElement = ((Adorner)sender).
AdornedElement
as UIElement;
679
UIElement dest = ((Adorner)sender).
AdornedElement
as UIElement;
System\Activities\Core\Presentation\FlowchartExpressionAdorner.cs (2)
60
Rect adornedElementRect = new Rect(this.
AdornedElement
.DesiredSize);
87
return GetExpressionString(this.
AdornedElement
);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (3)
1463
UIElement srcElement = ((Adorner)sender).
AdornedElement
as UIElement;
1480
UIElement adornedElement = ((Adorner)sender).
AdornedElement
as UIElement;
1486
UIElement dest = ((Adorner)sender).
AdornedElement
as UIElement;
System.Activities.Presentation (17)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (4)
132
Point anchorPoint = this.
AdornedElement
.TranslatePoint(new Point(this.
AdornedElement
.RenderSize.Width, 0), this.ScrollViewer);
138
DesignerView designerView = ((WorkflowViewElement)
AdornedElement
).Context.Services.GetService<DesignerView>();
145
Point location = CalculateLocation(anchor, this.
AdornedElement
.RenderSize, this.content.DesiredSize);
System.Activities.Presentation\System\Activities\Presentation\Annotations\WorkflowAnnotationAdornerService.cs (2)
33
AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(adorner.
AdornedElement
);
51
AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(adorner.
AdornedElement
);
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
893
this.layer.Update(this.
AdornedElement
);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoConnectAdorner.cs (4)
48
Size size = FreeFormPanel.GetChildSize(this.
AdornedElement
);
133
Point position = e.GetPosition(this.
AdornedElement
);
141
Size size = FreeFormPanel.GetChildSize(this.
AdornedElement
);
195
this.panel.AutoConnectContainer.DoAutoConnect(e, this.
AdornedElement
, this.AutoConnectDirection);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitAdorner.cs (1)
22
Size size = FreeFormPanel.GetChildSize(this.
AdornedElement
);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectionPointsAdorner.cs (1)
54
AdornedElement
.RaiseEvent(e);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
84
FreeFormPanel.GetEdgeRelativeToOutmostPanel(srcConnectionPoint), FreeFormPanel.GetEdgeRelativeToOutmostPanel(destConnPoint), srcConnectionPoint.ParentDesigner, destConnPtsAdorner.
AdornedElement
);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
302
FreeFormPanel panel = VisualTreeUtils.FindVisualAncestor<FreeFormPanel>(adorner.
AdornedElement
);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (1)
383
source = ((Adorner)source).
AdornedElement
;
System.Activities.Presentation\System\Activities\Presentation\View\SearchToolTipAdorner.cs (1)
56
this.
AdornedElement
.PointToScreen(new Point(0, 0)).Y - this.scrollViewerToScreenDistance;