3 types derived from Visual
PresentationCore (3)
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
29public class ContainerVisual : Visual
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (1)
36public sealed class Viewport3DVisual : Visual, DUCE.IResource, IVisual3DContainer
Core\CSharp\System\Windows\UIElement.cs (1)
79public partial class UIElement : Visual, IInputElement, IAnimatable
826 references to Visual
PresentationCore (353)
Core\CSharp\MS\Internal\Automation\ElementUtil.cs (32)
63internal static Visual GetParent( Visual el ) 65return VisualTreeHelper.GetParent(el) as Visual; 68internal static Visual GetFirstChild( Visual el ) 78internal static Visual GetLastChild( Visual el ) 89internal static Visual GetNextSibling( Visual el ) 93Visual parent = VisualTreeHelper.GetParent(el) as Visual; 103internal static Visual GetPreviousSibling( Visual el ) 107Visual parent = VisualTreeHelper.GetParent(el) as Visual; 117internal static Visual GetRoot( Visual el ) 120Visual scan = el; 123Visual test = VisualTreeHelper.GetParent(scan) as Visual; 135Visual parent = GetRoot( element ); 175internal static Visual GetElementFromPoint( IntPtr hwnd, Visual root, Point pointScreen ) 185Visual visual = (result != null) ? result.VisualHit : null; 193internal static void CheckEnabled(Visual visual) 280private static Visual FindVisibleSibling ( Visual parent, int start, bool searchForwards) 287Visual sibling = parent.InternalGetVisualChild(index); 306private static Visual FindVisibleSibling(Visual parent, Visual child, bool searchForwards) 317Visual current = parent.InternalGetVisualChild(childIndex);
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (2)
29Visual v = element as Visual;
Core\CSharp\MS\Internal\Ink\Renderer.cs (9)
213internal Visual RootVisual { get { return _rootVisual; } } 290internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 308foreach(Visual alreadyAttachedVisual in _attachedVisuals) 320_attachedVisuals = new List<Visual>(); 342internal void DetachIncrementalRendering(Visual visual) 363internal bool ContainsAttachedIncrementalRenderingVisual(Visual visual) 376internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 626private void DetachVisual(Visual visual) 725private List<Visual> _attachedVisuals = null;
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (11)
71Visual visual; 78Visual.PropagateFlags(visual, flags, proxyFlags); 93Visual visual; 114Visual visual; 232if (!(element is Visual || element is Visual3D)) 244internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 263internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 293internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D) 331private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D) 333Visual elementAsVisual = element as Visual;
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (3)
82internal GeneralTransform2DTo3DTo2D(Viewport2DVisual3D visual3D, Visual fromVisual) 94Visual visual3Dchild = visual3D.Visual; 101Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (1)
127if(o is Visual || o is Visual3D)
Core\CSharp\MS\Internal\UIElementHelper.cs (2)
104if (child is Visual) 106myParent = ((Visual)child).InternalVisualParent;
Core\CSharp\System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
96internal static AutomationPeer GetRootAutomationPeer(Visual rootVisual, IntPtr hwnd) 304Visual visualParent = parent as Visual;
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (2)
178Visual asVisual = child as Visual;
Core\CSharp\System\Windows\Documents\DocumentPage.cs (5)
37public DocumentPage(Visual visual) 52public DocumentPage(Visual visual, Size pageSize, Rect bleedBox, Rect contentBox) 95public virtual Visual Visual 192protected void SetVisual(Visual visual) 237private Visual _visual;
Core\CSharp\System\Windows\Input\FocusManager.cs (1)
405if (d is Visual || d is Visual3D)
Core\CSharp\System\Windows\Input\IInputProvider.cs (1)
16bool ProvidesInputForRootVisual(Visual v);
Core\CSharp\System\Windows\Input\InputElement.cs (15)
52Visual v; 84else if ((v = o as Visual) != null) 117Visual v; 134else if((v = o as Visual) != null) 171v = (Visual)o; 198v = o as Visual; 226rootVisual is Visual && parentVisual is Visual3D) 265Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 267Visual vFrom = vFromAsDO as Visual; 301Visual rootTo = InputElement.GetRootVisual(to) as Visual; 344Visual vToAsVisual = vTo as Visual;
Core\CSharp\System\Windows\Input\Manipulation.cs (2)
343internal static UIElement FindManipulationParent(Visual visual) 354visual = VisualTreeHelper.GetParent(visual) as Visual;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (1)
630PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1302if (currentChild is Visual || currentChild is Visual3D)
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
56bool IInputProvider.ProvidesInputForRootVisual( Visual v )
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (3)
57public void OnRootChanged(Visual oldRoot, Visual newRoot) 70bool IInputProvider.ProvidesInputForRootVisual(Visual v)
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
98bool IInputProvider.ProvidesInputForRootVisual(Visual v)
Core\CSharp\System\Windows\Interop\HwndSource.cs (4)
635public override Visual RootVisual 658private Visual RootVisualInternal 665Visual oldRoot = _rootVisual.Value; 3216private SecurityCriticalDataForSet<Visual> _rootVisual;
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
93bool IInputProvider.ProvidesInputForRootVisual(Visual v)
Core\CSharp\System\Windows\Interop\HwndTarget.cs (6)
1521internal AutomationPeer EnsureAutomationPeer(Visual root) 1531internal static AutomationPeer EnsureAutomationPeer(Visual root, IntPtr handle) 1570private static IntPtr CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle) 1990Visual visual = d as Visual; 2488public override Visual RootVisual
Core\CSharp\System\Windows\LayoutManager.cs (2)
95private void markTreeDirtyHelper(Visual v) 113Visual child = v.InternalGetVisualChild(i);
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (6)
33public BitmapCacheBrush(Visual visual) 116Visual vVisual = InternalTarget; 161internal void AddRefResource(Visual visual, DUCE.Channel channel) 169internal void ReleaseResource(Visual visual, DUCE.Channel channel) 199AutoWrapVisual.Children.Remove((Visual)e.OldValue); 200AutoWrapVisual.Children.Add((Visual)e.NewValue);
Core\CSharp\System\Windows\Media\CompositionTarget.cs (4)
188public virtual Visual RootVisual 272Visual.PropagateFlags( 504private void SetRootVisual(Visual visual) 598private SecurityCriticalDataForSet<Visual> _rootVisual;
Core\CSharp\System\Windows\Media\ContainerVisual.cs (1)
235protected sealed override Visual GetVisualChild(int index)
Core\CSharp\System\Windows\Media\DrawingVisualDrawingContext.cs (2)
43Visual ownerVisual 75private Visual _ownerVisual;
Core\CSharp\System\Windows\Media\Generated\BitmapCacheBrush.cs (13)
157Visual oldV = (Visual) e.OldValue; 183Visual newV = (Visual) e.NewValue; 220public Visual Target 224return (Visual) GetValue(TargetProperty); 267internal Visual InternalTarget 271return (Visual) GetValue(InternalTargetProperty); 347Visual vInternalTarget = InternalTarget; 414Visual vInternalTarget = InternalTarget; 438Visual vInternalTarget = InternalTarget; 563typeof(Visual), 590typeof(Visual),
Core\CSharp\System\Windows\Media\Generated\VisualBrush.cs (10)
95Visual oldV = (Visual) e.OldValue; 121Visual newV = (Visual) e.NewValue; 158public Visual Visual 162return (Visual) GetValue(VisualProperty); 236Visual vVisual = Visual; 320Visual vVisual = Visual; 342Visual vVisual = Visual; 453typeof(Visual),
Core\CSharp\System\Windows\Media\GeometryHitTestResult.cs (3)
30Visual visualHit, 50public new Visual VisualHit 54return (Visual) base.VisualHit;
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
64public void Render(Visual visual) 83internal void Render(Visual visual, Matrix worldTransform, Rect windowClip)
Core\CSharp\System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
221public void Render(Visual visual)
Core\CSharp\System\Windows\Media\PointHitTestResult.cs (3)
29public PointHitTestResult(Visual visualHit, Point pointHit) : base(visualHit) 48public new Visual VisualHit 52return (Visual) base.VisualHit;
Core\CSharp\System\Windows\Media\Renderer.cs (2)
40Visual visual, 61Visual visual,
Core\CSharp\System\Windows\Media\Visual.cs (48)
495Visual child = GetVisualChild(i); 818Visual visual = GetVisualChild(i); 1107Visual child = GetVisualChild(i); 1805Visual child = GetVisualChild(i); 2122Visual child = GetVisualChild(i); 2323Visual child = GetVisualChild(i); 2556protected virtual Visual GetVisualChild(int index) 2565internal Visual InternalGetVisualChild(int index) 2587internal void InternalAddVisualChild(Visual child) 2595internal void InternalRemoveVisualChild(Visual child) 2614protected void AddVisualChild(Visual child) 2640Visual.PropagateFlags( 2645Visual.PropagateFlags( 2683protected void RemoveVisualChild(Visual child) 2726Visual.PropagateFlags( 2750Visual.PropagateFlags( 4133Visual eAsVisual = e as Visual; 4170Visual visual; 4202Visual currentAsVisual = current as Visual; 4234Visual current = this; 4241Visual currentParent = current._parent as Visual; 4263Visual current = this; 4278current = parent as Visual; 4357Visual ancestor) 4402public GeneralTransform TransformToDescendant(Visual descendant) 4422public GeneralTransform TransformToVisual(Visual visual) 4425Visual ancestorAsVisual = ancestor as Visual; 4491private GeneralTransform InternalTransformToAncestor(Visual ancestor, bool inverse) 4525internal bool TrySimpleTransformToAncestor(Visual ancestor, 4555Visual gAsVisual = g as Visual; 4619Visual visualForGenTransform = null; 5035Visual cv = InternalGetVisualChild(i); 5121Visual eAsVisual; 5126eAsVisual = e as Visual; 5139eAsVisual = e as Visual; 5176Visual eAsVisual; 5183eAsVisual = e as Visual; 5196eAsVisual = e as Visual; 5237Visual pe, 5244Visual v = pe.GetVisualChild(i); 5262Visual e, 5310Visual parentAsVisual = e._parent as Visual;
Core\CSharp\System\Windows\Media\VisualBrush.cs (4)
49public VisualBrush(Visual visual) 117Visual vVisual = Visual; 163internal void AddRefResource(Visual visual, DUCE.Channel channel) 171internal void ReleaseResource(Visual visual, DUCE.Channel channel)
Core\CSharp\System\Windows\Media\VisualCollection.cs (29)
53private Visual[] _items; 55private Visual _owner; 80internal Visual[] InternalArray { get { return _items; } } 85public VisualCollection(Visual parent) 100internal void VerifyAPIReadOnly(Visual other) 113internal void VerifyAPIReadWrite(Visual other) 224public void CopyTo(Visual[] array, int index) 289Visual[] newItems = new Visual[value]; 347public Visual this[int index] 369Visual child = _items[index]; 399private void ConnectChild(int index, Visual value) 440Visual child = _items[index]; 450Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 477public int Add(Visual visual) 512public int IndexOf(Visual visual) 552public void Remove(Visual visual) 559private void InternalRemove(Visual visual) 598Visual child = _items[i+1]; 651public bool Contains(Visual visual) 721public void Insert(int index, Visual visual) 744Visual child = _items[i]; 837Visual child = _items[i + count]; 857internal void Move(Visual visual, Visual destination) 883Visual child = _items[i + 1]; 899Visual child = _items[i - 1]; 956private Visual _currentElement; 1008public Visual Current
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (32)
56return (reference is Visual) || (reference is Visual3D); 64Visual visual; 87Visual visual; 108public static DpiScale GetDpi(Visual visual) 117public static void SetRootDpi(Visual visual, DpiScale dpiInfo) 136Visual visual; 160Visual visual; 183internal static Visual GetContainingVisual2D(DependencyObject reference) 185Visual visual = null; 189visual = reference as Visual; 220Visual visual; 256Visual visual; 259if ((visual = current as Visual) != null) 278Visual visual; 295public static Geometry GetClip(Visual reference) 304public static double GetOpacity(Visual reference) 313public static Brush GetOpacityMask(Visual reference) 322public static Vector GetOffset(Visual reference) 331public static Transform GetTransform(Visual reference) 340public static DoubleCollection GetXSnappingGuidelines(Visual reference) 349public static DoubleCollection GetYSnappingGuidelines(Visual reference) 358public static DrawingGroup GetDrawing(Visual reference) 367public static Rect GetContentBounds(Visual reference) 386public static Rect GetDescendantBounds(Visual reference) 405public static BitmapEffect GetBitmapEffect(Visual reference) 416public static BitmapEffectInput GetBitmapEffectInput(Visual reference) 427public static Effect GetEffect(Visual reference) 436public static CacheMode GetCacheMode(Visual reference) 445public static EdgeMode GetEdgeMode(Visual reference) 454public static HitTestResult HitTest(Visual reference, Point point) 462internal static HitTestResult HitTest(Visual reference, Point point, bool include2DOn3D) 473Visual reference,
Core\CSharp\System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
35Visual child = containingVisual3D.Visual;
Core\CSharp\System\Windows\Media3D\RayHitTestParameters.cs (1)
139Visual viewport2DVisual3DChild = viewport2DVisual3D.Visual;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (11)
167internal static Point TextureCoordsToVisualCoords(Point uv, Visual visual) 250internal static Point VisualCoordsToTextureCoords(Point pt, Visual visual) 302public Visual Visual 304get { return (Visual)GetValue(VisualProperty); } 328Visual oldValue = (Visual)e.OldValue; 329Visual newValue = (Visual)e.NewValue; 380private void AddVisualChild(Visual child) 411private void RemoveVisualChild(Visual child) 885Visual visualChild = Visual;
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (3)
359Visual.PropagateFlags( 400child.SetParent(/* newParent = */ (Visual) null); // CS0121: Call is ambigious without casting null to Visual. 431Visual.PropagateFlags(
Core\CSharp\System\Windows\Media3D\Visual3D.cs (23)
479Visual.SetTreeBits( 491Visual.ClearTreeBits( 509internal event Visual.AncestorChangedEventHandler VisualAncestorChanged 513Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 526Visual.SetTreeBits( 537Visual.ClearTreeBits( 545Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 571if (e is Visual) 573Visual.ProcessAncestorChangedNotificationRecursive(e, args); 586Visual.AncestorChangedEventHandler handler = AncestorChangedEventField.GetValue(eAsVisual3D); 969internal void SetParent(Visual newParent) 1319Visual visual; 1359return ((Visual)parent2D).IsDescendantOf(ancestor); 1734Visual gAsVisual = g as Visual; 1816public GeneralTransform3DTo2D TransformToAncestor(Visual ancestor) 1835internal GeneralTransform3DTo2D InternalTransformToAncestor(Visual ancestor) 2056Visual v = null; 2114Visual.PropagateFlags(viewport, flags, proxyFlags); 2176private static readonly UncommonField<Visual> _2DParent = 2177new UncommonField<Visual>(/* defaultValue = */ null); 2188private static readonly UncommonField<Visual.AncestorChangedEventHandler> AncestorChangedEventField 2189= new UncommonField<Visual.AncestorChangedEventHandler>();
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
644Visual vis = doCurrent as Visual;
Core\CSharp\System\Windows\PresentationSource.cs (8)
110public static PresentationSource FromVisual(Visual visual) 187uie.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); 199uie3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); 258uie.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); ; 273uie3D.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); ; 361public abstract Visual RootVisual 502protected void RootChanged(Visual oldRoot, Visual newRoot)
Core\CSharp\System\Windows\UIElement.cs (20)
462internal static void PropagateSuspendLayout(Visual v) 486Visual cv = v.InternalGetVisualChild(i); 499internal static void PropagateResumeLayout(Visual parent, Visual v) 545Visual cv = v.InternalGetVisualChild(i); 613|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 734for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 752for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 826|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 1462Visual parentAsVisual = parent as Visual; 1513if (oldParent is Visual) 1515((Visual) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4288internal static void InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) 4295Visual vChild = child as Visual;
Core\CSharp\System\Windows\UIElement3D.cs (10)
160Visual parentAsVisual = parent as Visual; 168parentAsVisual.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 180parentAsVisual3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 208if (oldParent is Visual) 210((Visual)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 214((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1430if (vChild is Visual) 1432((Visual)vChild).InvalidateForceInheritPropertyOnChildren(property);
Shared\MS\Internal\PointUtil.cs (4)
94public static Point ApplyVisualTransform(Point point, Visual v, bool inverse) 104public static Point TryApplyVisualTransform(Point point, Visual v, bool inverse, bool throwOnError, out bool success) 150internal static Matrix GetVisualTransform(Visual v) 249internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource)
Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
53internal static bool IsConnectedToPresentationSource( Visual visual )
PresentationFramework (441)
src\Framework\MS\Internal\Annotations\Anchoring\PathNode.cs (2)
248Visual visual = current as Visual;
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
131Visual element = selection as Visual;
src\Framework\MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
163Visual parent = VisualTreeHelper.GetParent(_adornerLayer) as Visual;
src\Framework\MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
110protected override Visual GetVisualChild(int index)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
648foreach (Visual child in Children)
src\Framework\MS\Internal\AppModel\INavigator.cs (1)
312Visual FindRootViewer();
src\Framework\MS\Internal\AppModel\NavigationHelper.cs (4)
18internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName) 21if (content == null || content is Visual) 22return content as Visual; 34Visual v = cp.InternalGetVisualChild(0);
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
925Visual vis = rbw.Content as Visual;
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
269Visual visual = hitTestResult.VisualHit as Visual;
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
116protected override Visual GetVisualChild(int index)
src\Framework\MS\Internal\Data\ObjectRef.cs (9)
527Visual v = d as Visual; 539Visual v2 = layout as Visual; 542Visual prevChild = null; //child at j-1th index 601private int IndexOf(Visual parent, Visual child, out Visual prevChild) 603Visual temp;
src\Framework\MS\Internal\Documents\ContentHostHelper.cs (2)
149private static void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 169Visual child = root.InternalGetVisualChild(i);
src\Framework\MS\Internal\Documents\DocumentGrid.cs (9)
272public Rect MakeVisible(Visual v, Rect r) 295MakeVisibleAsync(new MakeVisibleData(o as Visual, cp, r), pageNumber); 1025protected override Visual GetVisualChild(int index) 1533Visual current = (Visual)visiblePages[i]; 1850if (((Visual)this).IsAncestorOf(data.Visual)) 3416public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3426public Visual Visual 3447private Visual _visual;
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (1)
186protected override Visual GetVisualChild(int index)
src\Framework\MS\Internal\Documents\DocumentPageHost.cs (7)
47internal static void DisconnectPageVisual(Visual pageVisual) 53Visual currentParent = VisualTreeHelper.GetParent(pageVisual) as Visual; 79internal Visual PageVisual 123protected override Visual GetVisualChild(int index) 129return VisualTreeHelper.GetParent(_pageVisual) as Visual; 148private Visual _pageVisual;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (5)
363if (focusedElement != null && focusedElement is Visual && 474internal static Rect CalculateVisibleRect(Rect visibleRect, Visual originalVisual) 476Visual visual = VisualTreeHelper.GetParent(originalVisual) as Visual; 496visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
232protected override Visual GetVisualChild(int index) 589Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (4)
1253private Transform GetTransformToAncestor(Visual innerScope) 1267private Rect TransformToAncestor(Visual innerScope, Rect rect) 1284private Point TransformToAncestor(Visual innerScope, Point point) 1298private Point TransformToDescendant(Visual innerScope, Point point)
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
175internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle)
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
232Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle) 553protected override Visual GetVisualChild(int index)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (3)
366iterate((Visual)element, peers); 739private static void iterate(Visual parent, List<AutomationPeer> peers) 745Visual child = parent.InternalGetVisualChild(i);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
564Visual visual = _owner.Visual; 567visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\MS\Internal\Documents\UIElementIsland.cs (2)
43Visual currentParent = VisualTreeHelper.GetParent(_child) as Visual;
src\Framework\MS\Internal\FrameworkObject.cs (6)
336Visual visual; 340if ((visual = fo.DO as Visual) != null) 443Visual visual; 447if ((visual = _do as Visual) != null) 904Visual visual = _do as Visual;
src\Framework\MS\Internal\Helper.cs (2)
462Visual v = d as Visual;
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
61public Visual Visual
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
306private static RenderTargetBitmap RenderVisualToBitmap(Visual visual, int width, int height)
src\Framework\MS\Internal\LayoutDump.cs (35)
47internal static string DumpLayoutAndVisualTreeToString(string tagName, Visual root) 70internal static void DumpLayoutAndVisualTree(XmlTextWriter writer, string tagName, Visual root) 202internal static void DumpVisual(XmlTextWriter writer, Visual visual, Visual parent) 245private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 299internal static void DumpDocumentPage(XmlTextWriter writer, DocumentPage page, Visual parent) 337private static void DumpVisualChildren(XmlTextWriter writer, string tagName, Visual visualParent) 359internal static void DumpUIElementChildren(XmlTextWriter writer, string tagName, Visual visualParent) 423internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 429Visual child = visual.InternalGetVisualChild(i); 649private static void DumpLineResults(XmlTextWriter writer, ReadOnlyCollection<LineResult> lines, Visual visualParent) 690private static void DumpParagraphResults(XmlTextWriter writer, string tagName, ReadOnlyCollection<ParagraphResult> paragraphs, Visual visualParent) 738private static void DumpTextParagraphResult(XmlTextWriter writer, TextParagraphResult paragraph, Visual visualParent) 747Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 760private static void DumpContainerParagraphResult(XmlTextWriter writer, ContainerParagraphResult paragraph, Visual visualParent) 769Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 778private static void DumpFloaterParagraphResult(XmlTextWriter writer, FloaterParagraphResult paragraph, Visual visualParent) 787Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 796private static void DumpUIElementParagraphResult(XmlTextWriter writer, UIElementParagraphResult paragraph, Visual visualParent) 805Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 813private static void DumpFigureParagraphResult(XmlTextWriter writer, FigureParagraphResult paragraph, Visual visualParent) 822Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 831private static void DumpTableParagraphResult(XmlTextWriter writer, TableParagraphResult paragraph, Visual visualParent) 836Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 843Visual rowVisual = visual.InternalGetVisualChild(i); 849Visual cellVisual = rowVisual.InternalGetVisualChild(j); 860private static void DumpSubpageParagraphResult(XmlTextWriter writer, SubpageParagraphResult paragraph, Visual visualParent) 869Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 878private static void DumpColumnResults(XmlTextWriter writer, ReadOnlyCollection<ColumnResult> columns, Visual visualParent) 904private static Visual DumpParagraphOffset(XmlTextWriter writer, ParagraphResult paragraph, Visual visualParent) 911Visual visual = (Visual)prop.GetValue(paraClient, null); 949private static void DumpTableCell(XmlTextWriter writer, ParagraphResult paragraph, Visual cellVisual, Visual tableVisual)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
98public override Visual Visual
src\Framework\MS\Internal\PtsHost\Line.cs (2)
428Visual currentParent = VisualTreeHelper.GetParent(inlineObject.UIElementIsland) as Visual;
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
71internal Visual Child
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (3)
91Visual paraVisual = floatingElementList[index].Visual; 295Visual currentParent = VisualTreeHelper.GetParent(paraClient.Visual) as Visual;
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (3)
1608Visual visual) 1688Visual currentParent = VisualTreeHelper.GetParent(cellParaClient.Visual) as Visual;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (1)
2516Visual temp = Visual;
src\Framework\MS\Internal\PtsHost\UIElementParaClient.cs (2)
125Visual currentParent = VisualTreeHelper.GetParent(uiElementIsland) as Visual;
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
175Visual currentParent = VisualTreeHelper.GetParent(inlineObject.Element) as Visual;
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
447public AnnotatedDocumentPage(DocumentPage basePage, Visual visual, Size pageSize, Rect bleedBox, Rect contentBox)
src\Framework\System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
260Visual visual = textView.RenderScope; 280visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (3)
300internal static Visual FindVisualByType(Visual parent, Type type) 307Visual visual = parent.InternalGetVisualChild(i);
src\Framework\System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
145private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 167private static bool iterate(Visual parent, bool includeInvisibleItems, IteratorCallback callback) 176Visual child = parent.InternalGetVisualChild(i);
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (3)
90private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 112private static bool iterate(Visual parent, IteratorCallback callback) 121Visual child = parent.InternalGetVisualChild(i);
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
191Visual visual = textView.RenderScope; 214visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\System\Windows\BroadcastEventHelper.cs (6)
468Visual visual; 475else if ((visual = d as Visual) != null) 586Visual v = (Visual)fo.FE; 692Visual v; 698if ((v = d as Visual) != null)
src\Framework\System\Windows\Controls\AccessText.cs (1)
532protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\AdornedElementPlaceholder.cs (1)
152protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\ComboBox.cs (5)
1609Visual visual; 1617else if ((visual = d as Visual) != null) 1748Visual originalSource = e.OriginalSource as Visual; 1749Visual textBox = comboBox.EditableTextBoxSite;
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
1051Visual result = DefaultExpansion(cp.Content, cp);
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
571if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
src\Framework\System\Windows\Controls\Decorator.cs (1)
179protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1169targetRect = MakeVisible((IScrollInfo)RenderScope, (Visual)ich, rects[0]); 1607private static Rect MakeVisible(IScrollInfo scrollInfo, Visual visual, Rect rectangle)
src\Framework\System\Windows\Controls\Frame.cs (2)
783Visual v = TemplateChild; 794Visual INavigatorImpl.FindRootViewer()
src\Framework\System\Windows\Controls\Grid.cs (4)
382protected override Visual GetVisualChild(int index) 799/// <see cref="Visual.OnVisualChildrenChanged"/> 3043Visual child = d as Visual;
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
422protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
925Visual headerAsVisual = d as Visual; 929Visual parent = VisualTreeHelper.GetParent(headerAsVisual) as Visual; 1235if (!(srcHeader.Content is Visual))
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (1)
344if (!(item is Visual) && (HeaderIsItem || !HasNonDefaultValue(HeaderProperty)))
src\Framework\System\Windows\Controls\InkCanvas.cs (3)
389protected override Visual GetVisualChild(int index) 2356internal void BeginDynamicSelection(Visual visual) 2400internal StrokeCollection EndDynamicSelection(Visual visual)
src\Framework\System\Windows\Controls\InkPresenter.cs (5)
83public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 95public void DetachVisuals(Visual visual) 257protected override Visual GetVisualChild(int index) 346internal bool ContainsAttachedVisual(Visual visual) 356internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
src\Framework\System\Windows\Controls\ItemsControl.cs (4)
1341Visual visual = container as Visual; 1344Visual parent = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\System\Windows\Controls\ItemsPresenter.cs (2)
183Visual parent = VisualTreeHelper.GetParent(groupItem) as Visual;
src\Framework\System\Windows\Controls\ListBox.cs (2)
551Visual visualOldFocus = oldFocus as Visual;
src\Framework\System\Windows\Controls\Page.cs (2)
661Visual visualParent = VisualTreeHelper.GetParent(this) as Visual;
src\Framework\System\Windows\Controls\Panel.cs (2)
383protected override Visual GetVisualChild(int index) 869/// <see cref="Visual.OnVisualChildrenChanged"/>
src\Framework\System\Windows\Controls\PopupControlService.cs (5)
424DependencyObject v = o as Visual; 439((v is Visual && ((Visual)v).IsDescendantOf(_currentToolTip)) || 960DependencyObject v = o as Visual; 999nearestVisual = o as Visual;
src\Framework\System\Windows\Controls\Primitives\BulletDecorator.cs (3)
220protected override Visual GetVisualChild(int index) 383private TextBlock FindText(Visual root) 425private FlowDocumentScrollViewer FindFlowDocumentScrollViewer(Visual root)
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
92Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
466protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (6)
349Visual pageVisual; 472protected override Visual GetVisualChild(int index) 921Visual visualParent; 934visualParent = VisualTreeHelper.GetParent(this) as Visual; 942visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 1016private Visual _pageVisualClone;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
927private void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 941Visual child = root.InternalGetVisualChild(i); 974private AdornerDecorator FindAdornerDecorator(Visual root) 990Visual child = root.InternalGetVisualChild(i);
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
127protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\Primitives\IScrollInfo.cs (1)
123Rect MakeVisible(Visual visual, Rect rectangle);
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (1)
828if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (24)
1422private static Visual GetRootVisual(Visual child) 1432return root as Visual; 1436private Visual GetTarget() 1438Visual targetVisual = PlacementTarget; 1492Visual targetVisual = GetTarget(); 1597private void BuildWindow(Visual targetVisual) 1825Visual rootVisual = parent == null ? null : GetRootVisual(this); 2356Visual rootVisual = GetRootVisual(target); 2437private static GeneralTransform TransformToClient(Visual visual, Visual rootVisual) 3031internal Point ClientToScreen(Visual rootVisual, Point clientPoint) 3081internal NativeMethods.POINT GetMouseCursorPos(Visual targetVisual) 3100Visual rootVisual = hwndSource.RootVisual; 3188internal static Matrix GetTransformToDevice(Visual targetVisual) 3228internal void SetWindowRootVisual(Visual v) 3238internal static bool IsVisualPresentationSourceNull(Visual visual) 3371private static Visual FindMainTreeVisual(Visual v) 3403return root as Visual; 3416internal void BuildWindow(int x, int y, Visual placementTarget, 3422Visual mainTreeVisual = placementTarget; 3594private static PresentationSource GetPresentationSource(Visual visual) 3750var rootVisual = Popup.GetRootVisual(target);
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (1)
71protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (6)
190public Rect MakeVisible(Visual visual, Rect rectangle) 353protected override Visual GetVisualChild(int index) 564internal Rect MakeVisible(Visual visual, Rect rectangle, bool throwOnError) 581|| visual == (Visual)this 744Visual child = Content as Visual;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1707Visual visual = this.RenderScope; 1714visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\System\Windows\Controls\Primitives\Track.cs (3)
127_visualChildren = new Visual[3]; 378protected override Visual GetVisualChild(int index) 860private Visual[] _visualChildren;
src\Framework\System\Windows\Controls\PrintDialog.cs (1)
408Visual visual,
src\Framework\System\Windows\Controls\RadioButton.cs (1)
141Visual rootScope = KeyboardNavigation.GetVisualRoot(this);
src\Framework\System\Windows\Controls\ScrollViewer.cs (11)
195internal void MakeVisible(Visual child, Rect rect) 1054Visual baseRoot = KeyboardNavigation.GetVisualRoot(scp); 1055Visual elementRoot = KeyboardNavigation.GetVisualRoot(element); 2167internal MakeVisibleParams(Visual child, Rect targetRect) 2172internal Visual Child; 2285Visual child = cmd.MakeVisibleParam.Child; 2286Visual visi = isi as Visual; 2504Visual child = e.TargetObject as Visual; 2524child = contentHost as Visual;
src\Framework\System\Windows\Controls\Stack.cs (3)
244public Rect MakeVisible(Visual visual, Rect rectangle) 253|| visual == (Visual)this 857private int FindChildIndexThatParentsVisual(Visual child)
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1250Visual source = args.OriginalSource as Visual;
src\Framework\System\Windows\Controls\TextAdaptor.cs (11)
250Visual visual = renderScope; 273visual = VisualTreeHelper.GetParent(visual) as Visual; 327Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 348visual = VisualTreeHelper.GetParent(visual) as Visual; 357private Point ClientToScreen(Point point, Visual visual) 376/// A version of <see cref="ClientToScreen(Point, Visual)"/> for compatibility purposes. 381private Point ObsoleteClientToScreen(Point point, Visual visual) 399private Point ScreenToClient(Point point, Visual visual) 417/// A version of <see cref="ScreenToClient(Point, Visual)"/> for compatibility purposes. 422private Point ObsoleteScreenToClient(Point point, Visual visual)
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1238protected override Visual GetVisualChild(int index) 2006internal void RemoveChild(Visual child)
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
491protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\TreeView.cs (2)
815Visual v = o as Visual;
src\Framework\System\Windows\Controls\UIElementCollection.cs (6)
263Visual[] visuals = new Visual[cnt]; 359Visual[] visuals = new Visual[count]; 389internal void MoveVisualChild(Visual visual, Visual destination)
src\Framework\System\Windows\Controls\ViewBox.cs (1)
247protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\ViewPort3D.cs (1)
187protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
1433public Rect MakeVisible(Visual visual, Rect rectangle) 1446|| visual == (Visual)this 10887private double FindScrollOffset(Visual v) 10966ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage;
src\Framework\System\Windows\DescendentsWalker.cs (4)
113Visual v = d as Visual; 135private void WalkVisualChildren( Visual v ) 322Visual child = feParent.InternalGetVisualChild(i);
src\Framework\System\Windows\Documents\AdornerDecorator.cs (2)
169Visual old = base.Child; 213protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Documents\AdornerHitTestResult.cs (1)
44 internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt)
src\Framework\System\Windows\Documents\AdornerLayer.cs (16)
299Visual visual = result.VisualHit; 308visual = (Visual)VisualTreeHelper.GetParent(visual); 324static public AdornerLayer GetAdornerLayer(Visual visual) 329Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 338parent = VisualTreeHelper.GetParent(parent) as Visual; 398protected override Visual GetVisualChild(int index) 721Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 783Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 838private CombinedGeometry GetClipGeometry(Visual element, Adorner adorner) 840Visual oldElement = null; 843Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 879element = (Visual)VisualTreeHelper.GetParent(element);
src\Framework\System\windows\Documents\CaretElement.cs (1)
110protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
132Visual parent2d = VisualTreeHelper.GetParent(this.AdornedElement) as Visual;
src\Framework\System\Windows\Documents\DocumentSequence.cs (1)
1162public override Visual Visual
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (2)
516Visual visual = _docPage.Visual; 520visual = VisualTreeHelper.GetParent(visual) as Visual;
src\Framework\System\Windows\Documents\FixedDocument.cs (1)
1454public override Visual Visual
src\Framework\System\Windows\Documents\FixedPage.cs (1)
741protected override Visual GetVisualChild(int index)
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
698Visual visual = _docPage.Visual; 702visual = VisualTreeHelper.GetParent(visual) as Visual; 1250private Visual VisualRoot
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
919parentOfEmbeddedElement = VisualTreeHelper.GetParent((Visual)element);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (4)
296Visual v = GetVisual(-_selectionRect.Left, -_selectionRect.Top); 307private Visual GetVisual(double offsetX, double offsetY) 328private void CloneVisualTree(ContainerVisual parent, Visual old) 353Visual child = old.InternalGetVisualChild(i);
src\Framework\System\Windows\Documents\Serialization\SerializerWriter.cs (6)
34public abstract void Write(Visual visual); 44public abstract void Write(Visual visual, PrintTicket printTicket); 49public abstract void WriteAsync(Visual visual); 54public abstract void WriteAsync(Visual visual, object userState); 65public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 76public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
src\Framework\System\Windows\Documents\Serialization\SerializerWriterCollator.cs (6)
43public abstract void Write(Visual visual); 53public abstract void Write(Visual visual, PrintTicket printTicket); 58public abstract void WriteAsync(Visual visual); 63public abstract void WriteAsync(Visual visual, object userState); 73public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 83public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
300for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual)
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (3)
434ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 465private ITextPointer GetDropPosition(Visual target, Point point) 564ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope));
src\Framework\System\windows\Documents\TextEditorMouse.cs (6)
622Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 625scrollViewer = VisualTreeHelper.GetParent(scrollViewer) as Visual; 783if(hitTestResult.VisualHit is Visual) check = ((Visual)hitTestResult.VisualHit).IsDescendantOf(renderScope); 809else if (hitElement is Visual)
src\Framework\System\Windows\Documents\TextPointerBase.cs (6)
891Visual templatedParent; 896templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 899templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 902else if (thisPointer.TextContainer.Parent is Visual) 904Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 906templatedParent = (Visual)thisPointer.TextContainer.Parent;
src\Framework\System\windows\Documents\TextSelection.cs (2)
2597if (parent == null && element is Visual) 2603else if (element is Visual)
src\Framework\System\Windows\Documents\TextStore.cs (4)
725UiScope as Visual, 2658private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes) 2737source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 2740Visual root = source.RootVisual;
src\Framework\System\Windows\FrameworkElement.cs (14)
651protected override Visual GetVisualChild(int index) 2224for (Visual v = VisualTreeHelper.GetParent(this) as Visual; 2226v = VisualTreeHelper.GetParent(v) as Visual) 2484Visual newParentAsVisual = newParent as Visual; 2491((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2498Visual oldParentAsVisual = oldParent as Visual; 2505((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2948Visual visualParentAsVisual = visualParent as Visual; 3137Visual visualParentAsVisual = visualParent as Visual;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (40)
167internal static Visual GetVisualRoot(DependencyObject d) 169if (d is Visual || d is Visual3D) 571Debug.Assert(contentHostParent is Visual, "contentHostParent should be Visual"); 629if (!(contentHost is Visual) || !AdornedElement.IsAncestorOf((Visual)contentHost)) 711protected override Visual GetVisualChild(int index) 728if (_adornedContentElement != null && (_contentHostParent==null || VisualTreeHelper.GetParent(_contentHostParent as Visual) == null)) 758if (contentHost is Visual && AdornedElement.IsAncestorOf((Visual)contentHost)) 760_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 837Visual visualParent = parent as Visual; 840visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 980Visual visualRoot = GetVisualRoot(focusTarget); 1097Visual visualRoot = GetVisualRoot(currentElement); 1161Visual visual = currentElement as Visual; 1335Visual visual = element as Visual; 1343Visual rootVisual = GetVisualRoot(visual); 1576DependencyObject elementAsVisual = e as Visual; 1637DependencyObject elementAsVisual = e as Visual; 1683Visual visualFocusedElement = focusedElement as Visual; 1750DependencyObject elementAsVisual = e as Visual; 1815DependencyObject elementAsVisual = e as Visual; 1845if (e is Visual || e is Visual3D) 2470Visual rootVisual = GetVisualRoot(uiElement); 2500Visual parent = parentICH as Visual; 2503Visual rootVisual = GetVisualRoot(parent); 2530Visual rootVisual = GetVisualRoot(uiElement3D); 2531Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(uiElement3D); 2719Visual sourceVisual = sourceElement as Visual; 2720Visual targetVisual = targetElement as Visual; 3386Visual eventSourceVisual = eventSource as Visual; 3519Visual root = source.RootVisual;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
825case 733: t = () => typeof(Visual); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11205typeof(System.Windows.Media.Visual),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6277case KnownElements.Visual: t = typeof(System.Windows.Media.Visual); break;
src\Framework\System\Windows\Navigation\NavigationService.cs (6)
506if (_navigatorHostImpl != null && !(_bp is Visual)) 508Visual v = _navigatorHostImpl.FindRootViewer(); 520Debug.Assert(!(_bp is Visual)); 521Visual v = _navigatorHostImpl.FindRootViewer(); 1236internal void VisualTreeAvailable(Visual v) 4408private Visual _oldRootVisual;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
967Visual INavigatorImpl.FindRootViewer()
src\Framework\System\Windows\StyleHelper.cs (1)
5603return (value is Visual) || (value is ContentElement);
src\Framework\System\Windows\Window.cs (3)
2161/// <param name="visualAdded">The <see cref="Visual"/> that was added to the collection</param> 2162/// <param name="visualRemoved">The <see cref="Visual"/> that was removed from the collection</param> 7955internal Visual RootVisual
src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
53internal static bool IsConnectedToPresentationSource( Visual visual )
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (1)
524AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer((Visual)sender);
System\Activities\Core\Presentation\FreeFormPanelUtilities.cs (1)
16internal static bool IsRightToLeft(Visual visual)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
536private WorkflowViewElement FindTopmostWorkflowViewelementByHitTest(Visual visualToHitTest, Point point)
System.Activities.Presentation (29)
System.Activities.Presentation\System\Activities\Presentation\Annotations\AnnotationAdorner.cs (1)
119protected override Visual GetVisualChild(int index)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (2)
210Visual selectedVisual = _displayedSelection.PrimarySelection.View as Visual;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (6)
279public static ICollection<T> PrunVisualTree<T>(Visual root) where T : DependencyObject 286Visual child; 317child = VisualTreeHelper.GetChild(currentObject.Visual, i) as Visual; 335if (element is Visual || element is Visual3D) 349internal Visual Visual { get; set; } 352internal VisualState(Visual visual, uint depth)
System.Activities.Presentation\System\Activities\Presentation\Base\Documents\ViewManager.cs (1)
25public abstract Visual View { get; }
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (2)
455Visual parentVisual = clickedModelItem.View as Visual;
System.Activities.Presentation\System\Activities\Presentation\DialogWindow.cs (1)
57var rootVisual = HwndSource.FromHwnd(hwnd).RootVisual;
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
905protected override Visual GetVisualChild(int index)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
1056public static T GetVisualChild<T>(DependencyObject parent) where T : Visual 1063Visual v = (Visual)VisualTreeHelper.GetChild(parent, i);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
996if (focusedElement == null || focusedElement == sender || ((Visual)sender).IsAncestorOf(focusedElement))
System.Activities.Presentation\System\Activities\Presentation\View\ViewUtilities.cs (7)
234internal static GeneralTransform GetTransformToRoot(Visual visual) 236Visual rootVisual = GetRootVisual(visual); 241private static Visual GetRootVisual(Visual visual) 245Visual root = null; 272Visual currentVisual = current as Visual;
System.Activities.Presentation\System\Activities\Presentation\View\VirtualizedContainerService.cs (1)
473GeneralTransform generalTransform1 = this.TransformToAncestor((Visual)this.DesignerRoot);
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewManager.cs (1)
38public override System.Windows.Media.Visual View
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
339Visual visual = p as Visual;