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