3 types derived from Visual
PresentationCore (3)
System\Windows\Media\ContainerVisual.cs (1)
17public class ContainerVisual : Visual
System\Windows\Media3D\Viewport3DVisual.cs (1)
21public sealed class Viewport3DVisual : Visual, DUCE.IResource, IVisual3DContainer
System\Windows\UIElement.cs (1)
72public partial class UIElement : Visual, IInputElement, IAnimatable
970 references to Visual
Microsoft.VisualStudio.LanguageServices (2)
Utilities\DependencyObjectExtensions.cs (2)
16return (obj is Visual) ? VisualTreeHelper.GetParent(obj) : null; 19public static T GetParentOfType<T>(this DependencyObject element) where T : Visual
PresentationCore (377)
MS\Internal\Automation\ElementUtil.cs (32)
44internal static Visual GetParent( Visual el ) 46return VisualTreeHelper.GetParent(el) as Visual; 49internal static Visual GetFirstChild( Visual el ) 59internal static Visual GetLastChild( Visual el ) 70internal static Visual GetNextSibling( Visual el ) 74Visual parent = VisualTreeHelper.GetParent(el) as Visual; 84internal static Visual GetPreviousSibling( Visual el ) 88Visual parent = VisualTreeHelper.GetParent(el) as Visual; 98internal static Visual GetRoot( Visual el ) 101Visual scan = el; 104Visual test = VisualTreeHelper.GetParent(scan) as Visual; 116Visual parent = GetRoot( element ); 149internal static Visual GetElementFromPoint( IntPtr hwnd, Visual root, Point pointScreen ) 159Visual visual = (result != null) ? result.VisualHit : null; 166internal static void CheckEnabled(Visual visual) 250private static Visual FindVisibleSibling ( Visual parent, int start, bool searchForwards) 257Visual sibling = parent.InternalGetVisualChild(index); 274private static Visual FindVisibleSibling(Visual parent, Visual child, bool searchForwards) 285Visual current = parent.InternalGetVisualChild(childIndex);
MS\Internal\DeferredElementTreeState.cs (2)
32Visual v = element as Visual;
MS\Internal\Ink\Renderer.cs (9)
199internal Visual RootVisual { get { return _rootVisual; } } 273internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 285foreach(Visual alreadyAttachedVisual in _attachedVisuals) 297_attachedVisuals = new List<Visual>(); 319internal void DetachIncrementalRendering(Visual visual) 337internal bool ContainsAttachedIncrementalRenderingVisual(Visual visual) 350internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 600private void DetachVisual(Visual visual) 699private List<Visual> _attachedVisuals = null;
MS\Internal\Media\VisualTreeUtils.cs (11)
57Visual visual; 64Visual.PropagateFlags(visual, flags, proxyFlags); 79Visual visual; 100Visual visual; 218if (!(element is Visual || element is Visual3D)) 230internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 246internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 276internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D) 314private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D) 316Visual elementAsVisual = element as Visual;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (3)
67internal GeneralTransform2DTo3DTo2D(Viewport2DVisual3D visual3D, Visual fromVisual) 79Visual visual3Dchild = visual3D.Visual; 86Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
MS\Internal\SynchronizedInputHelper.cs (1)
127if(o is Visual || o is Visual3D)
MS\Internal\UIElementHelper.cs (2)
98if (child is Visual) 100myParent = ((Visual)child).InternalVisualParent;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (4)
82public static Point ApplyVisualTransform(Point point, Visual v, bool inverse) 92public static Point TryApplyVisualTransform(Point point, Visual v, bool inverse, bool throwOnError, out bool success) 138internal static Matrix GetVisualTransform(Visual v) 221internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
42internal static bool IsConnectedToPresentationSource( Visual visual )
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
76internal static AutomationPeer GetRootAutomationPeer(Visual rootVisual, IntPtr hwnd) 272Visual visualParent = parent as Visual;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
160Visual asVisual = child as Visual;
System\Windows\Documents\DocumentPage.cs (5)
33public DocumentPage(Visual visual) 48public DocumentPage(Visual visual, Size pageSize, Rect bleedBox, Rect contentBox) 91public virtual Visual Visual 188protected void SetVisual(Visual visual) 233private Visual _visual;
System\Windows\DpiScale.cs (1)
13/// Stores DPI information from which a <see cref="System.Windows.Media.Visual"/>
System\Windows\Input\FocusManager.cs (1)
375if (d is Visual || d is Visual3D)
System\Windows\Input\IInputProvider.cs (1)
18bool ProvidesInputForRootVisual(Visual v);
System\Windows\Input\InputElement.cs (12)
59else if (o is Visual v) 107else if(o is Visual v) 168v = o as Visual; 196rootVisual is Visual && parentVisual is Visual3D) 223Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 225Visual vFrom = vFromAsDO as Visual; 259Visual rootTo = InputElement.GetRootVisual(to) as Visual; 301Visual vToAsVisual = vTo as Visual;
System\Windows\Input\Manipulation.cs (2)
296internal static UIElement FindManipulationParent(Visual visual) 307visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Input\ManipulationLogic.cs (1)
574PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
277public Visual RootVisual
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
339Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 340Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
260Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (2)
126Visual rootVisual = (relativePresentationSource != null) ? relativePresentationSource.RootVisual : null; 127Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(containingVisual);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
1028PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
59PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (8)
77DependencyObject spicAddingVisual = spicAdding.Element as Visual; 83DependencyObject curV = _plugInCollectionList[i].Element as Visual; 89curV = _plugInCollectionList[i].Element as Visual; 185(plugInCollection.Element as Visual).IsAncestorOf(element as Visual)) 535source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 572Visual directlyOverVisual = mouseDevice.DirectlyOver as Visual;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (5)
275DependencyObject spicAddingVisual = spicAdding.Element as Visual; 281DependencyObject curV = _plugInCollectionList[i].Element as Visual; 287curV = _plugInCollectionList[i].Element as Visual; 510(plugInCollection.Element as Visual).IsAncestorOf(element as Visual))
System\Windows\Input\Stylus\Wisp\WispLogic.cs (3)
1839source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1876Visual directlyOverVisual = mouseDevice.DirectlyOver as Visual;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
588PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
69PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\TouchDevice.cs (1)
1201if (currentChild is Visual || currentChild is Visual3D)
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
28bool IInputProvider.ProvidesInputForRootVisual( Visual v )
System\Windows\InterOp\HwndKeyboardInputProvider.cs (3)
30public void OnRootChanged(Visual oldRoot, Visual newRoot) 38bool IInputProvider.ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
70bool IInputProvider.ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
451public bool ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndSource.cs (4)
541public override Visual RootVisual 557private Visual RootVisualInternal 563Visual oldRoot = _rootVisual; 2784private Visual _rootVisual;
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
65bool IInputProvider.ProvidesInputForRootVisual(Visual v) => _source.RootVisual == v;
System\Windows\InterOp\HwndTarget.cs (6)
1400internal AutomationPeer EnsureAutomationPeer(Visual root) 1405internal static AutomationPeer EnsureAutomationPeer(Visual root, IntPtr handle) 1438private static IntPtr CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle) 1816Visual visual = d as Visual; 2296public override Visual RootVisual
System\Windows\LayoutManager.cs (2)
79private void markTreeDirtyHelper(Visual v) 97Visual child = v.InternalGetVisualChild(i);
System\Windows\Media\BitmapCacheBrush.cs (6)
23public BitmapCacheBrush(Visual visual) 105Visual vVisual = InternalTarget; 150internal void AddRefResource(Visual visual, DUCE.Channel channel) 158internal void ReleaseResource(Visual visual, DUCE.Channel channel) 188AutoWrapVisual.Children.Remove((Visual)e.OldValue); 189AutoWrapVisual.Children.Add((Visual)e.NewValue);
System\Windows\Media\CompositionTarget.cs (4)
150public virtual Visual RootVisual 231Visual.PropagateFlags( 450private void SetRootVisual(Visual visual) 538private Visual _rootVisual;
System\Windows\Media\ContainerVisual.cs (1)
223protected sealed override Visual GetVisualChild(int index)
System\Windows\Media\DrawingVisualDrawingContext.cs (2)
20Visual ownerVisual 52private Visual _ownerVisual;
System\Windows\Media\Generated\BitmapCacheBrush.cs (13)
120Visual oldV = (Visual) e.OldValue; 146Visual newV = (Visual) e.NewValue; 183public Visual Target 187return (Visual) GetValue(TargetProperty); 230internal Visual InternalTarget 234return (Visual) GetValue(InternalTargetProperty); 304Visual vInternalTarget = InternalTarget; 370Visual vInternalTarget = InternalTarget; 392Visual vInternalTarget = InternalTarget; 515typeof(Visual), 542typeof(Visual),
System\Windows\Media\Generated\VisualBrush.cs (10)
62Visual oldV = (Visual) e.OldValue; 88Visual newV = (Visual) e.NewValue; 125public Visual Visual 129return (Visual) GetValue(VisualProperty); 197Visual vVisual = Visual; 280Visual vVisual = Visual; 300Visual vVisual = Visual; 409typeof(Visual),
System\Windows\Media\GeometryHitTestResult.cs (3)
20Visual visualHit, 40public new Visual VisualHit 44return (Visual) base.VisualHit;
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
46public void Render(Visual visual) 60internal void Render(Visual visual, Matrix worldTransform, Rect windowClip)
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
182public void Render(Visual visual)
System\Windows\Media\PointHitTestResult.cs (3)
19public PointHitTestResult(Visual visualHit, Point pointHit) : base(visualHit) 38public new Visual VisualHit 42return (Visual) base.VisualHit;
System\Windows\Media\Renderer.cs (2)
21Visual visual, 38Visual visual,
System\Windows\Media\Visual.cs (48)
472Visual child = GetVisualChild(i); 793Visual visual = GetVisualChild(i); 1081Visual child = GetVisualChild(i); 1776Visual child = GetVisualChild(i); 2087Visual child = GetVisualChild(i); 2288Visual child = GetVisualChild(i); 2515protected virtual Visual GetVisualChild(int index) 2524internal Visual InternalGetVisualChild(int index) 2546internal void InternalAddVisualChild(Visual child) 2554internal void InternalRemoveVisualChild(Visual child) 2573protected void AddVisualChild(Visual child) 2599Visual.PropagateFlags( 2604Visual.PropagateFlags( 2642protected void RemoveVisualChild(Visual child) 2685Visual.PropagateFlags( 2708Visual.PropagateFlags( 4087Visual eAsVisual = e as Visual; 4124Visual visual; 4153Visual currentAsVisual = current as Visual; 4185Visual current = this; 4192Visual currentParent = current._parent as Visual; 4214Visual current = this; 4229current = parent as Visual; 4304Visual ancestor) 4343public GeneralTransform TransformToDescendant(Visual descendant) 4360public GeneralTransform TransformToVisual(Visual visual) 4363Visual ancestorAsVisual = ancestor as Visual; 4429private GeneralTransform InternalTransformToAncestor(Visual ancestor, bool inverse) 4463internal bool TrySimpleTransformToAncestor(Visual ancestor, 4493Visual gAsVisual = g as Visual; 4557Visual visualForGenTransform = null; 4973Visual cv = InternalGetVisualChild(i); 5059Visual eAsVisual; 5064eAsVisual = e as Visual; 5077eAsVisual = e as Visual; 5114Visual eAsVisual; 5121eAsVisual = e as Visual; 5134eAsVisual = e as Visual; 5175Visual pe, 5181Visual v = pe.GetVisualChild(i); 5199Visual e, 5247Visual parentAsVisual = e._parent as Visual;
System\Windows\Media\VisualBrush.cs (4)
38public VisualBrush(Visual visual) 105Visual vVisual = Visual; 151internal void AddRefResource(Visual visual, DUCE.Channel channel) 159internal void ReleaseResource(Visual visual, DUCE.Channel channel)
System\Windows\Media\VisualCollection.cs (29)
36private Visual[] _items; 38private Visual _owner; 63internal Visual[] InternalArray { get { return _items; } } 68public VisualCollection(Visual parent) 80internal void VerifyAPIReadOnly(Visual other) 93internal void VerifyAPIReadWrite(Visual other) 197public void CopyTo(Visual[] array, int index) 256Visual[] newItems = new Visual[value]; 314public Visual this[int index] 338Visual child = _items[index]; 368private void ConnectChild(int index, Visual value) 409Visual child = _items[index]; 419Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 446public int Add(Visual visual) 481public int IndexOf(Visual visual) 521public void Remove(Visual visual) 528private void InternalRemove(Visual visual) 567Visual child = _items[i+1]; 620public bool Contains(Visual visual) 690public void Insert(int index, Visual visual) 711Visual child = _items[i]; 793Visual child = _items[i + count]; 813internal void Move(Visual visual, Visual destination) 839Visual child = _items[i + 1]; 855Visual child = _items[i - 1]; 912private Visual _currentElement; 964public Visual Current
System\Windows\Media\VisualTreeHelper.cs (31)
42return (reference is Visual) || (reference is Visual3D); 50Visual visual; 73Visual visual; 94public static DpiScale GetDpi(Visual visual) 103public static void SetRootDpi(Visual visual, DpiScale dpiInfo) 122Visual visual; 145Visual visual; 168internal static Visual GetContainingVisual2D(DependencyObject reference) 170Visual visual = null; 174visual = reference as Visual; 205Visual visual; 235if (current is Visual visual) 254Visual visual; 271public static Geometry GetClip(Visual reference) 280public static double GetOpacity(Visual reference) 289public static Brush GetOpacityMask(Visual reference) 298public static Vector GetOffset(Visual reference) 307public static Transform GetTransform(Visual reference) 316public static DoubleCollection GetXSnappingGuidelines(Visual reference) 325public static DoubleCollection GetYSnappingGuidelines(Visual reference) 334public static DrawingGroup GetDrawing(Visual reference) 343public static Rect GetContentBounds(Visual reference) 362public static Rect GetDescendantBounds(Visual reference) 381public static BitmapEffect GetBitmapEffect(Visual reference) 392public static BitmapEffectInput GetBitmapEffectInput(Visual reference) 403public static Effect GetEffect(Visual reference) 412public static CacheMode GetCacheMode(Visual reference) 421public static EdgeMode GetEdgeMode(Visual reference) 430public static HitTestResult HitTest(Visual reference, Point point) 437internal static HitTestResult HitTest(Visual reference, Point point, bool include2DOn3D) 448Visual reference,
System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
22Visual child = containingVisual3D.Visual;
System\Windows\Media3D\RayHitTestParameters.cs (1)
131Visual viewport2DVisual3DChild = viewport2DVisual3D.Visual;
System\Windows\Media3D\Viewport2DVisual3D.cs (11)
141internal static Point TextureCoordsToVisualCoords(Point uv, Visual visual) 224internal static Point VisualCoordsToTextureCoords(Point pt, Visual visual) 276public Visual Visual 278get { return (Visual)GetValue(VisualProperty); } 302Visual oldValue = (Visual)e.OldValue; 303Visual newValue = (Visual)e.NewValue; 354private void AddVisualChild(Visual child) 385private void RemoveVisualChild(Visual child) 858Visual visualChild = Visual;
System\Windows\Media3D\Viewport3DVisual.cs (3)
344Visual.PropagateFlags( 385child.SetParent(/* newParent = */ (Visual) null); // CS0121: Call is ambigious without casting null to Visual. 416Visual.PropagateFlags(
System\Windows\Media3D\Visual3D.cs (23)
462Visual.SetTreeBits( 474Visual.ClearTreeBits( 492internal event Visual.AncestorChangedEventHandler VisualAncestorChanged 496Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 509Visual.SetTreeBits( 520Visual.ClearTreeBits( 528Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 554if (e is Visual) 556Visual.ProcessAncestorChangedNotificationRecursive(e, args); 569Visual.AncestorChangedEventHandler handler = AncestorChangedEventField.GetValue(eAsVisual3D); 945internal void SetParent(Visual newParent) 1295Visual visual; 1332return ((Visual)parent2D).IsDescendantOf(ancestor); 1698Visual gAsVisual = g as Visual; 1780public GeneralTransform3DTo2D TransformToAncestor(Visual ancestor) 1796internal GeneralTransform3DTo2D InternalTransformToAncestor(Visual ancestor) 2014Visual v = null; 2072Visual.PropagateFlags(viewport, flags, proxyFlags); 2134private static readonly UncommonField<Visual> _2DParent = 2135new UncommonField<Visual>(/* defaultValue = */ null); 2146private static readonly UncommonField<Visual.AncestorChangedEventHandler> AncestorChangedEventField 2147= new UncommonField<Visual.AncestorChangedEventHandler>();
System\Windows\Navigation\BaseUriHelper.cs (2)
588Visual vis = doCurrent as Visual;
System\Windows\PresentationSource.cs (8)
80public static PresentationSource FromVisual(Visual visual) 139uie.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); 149uie3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); 212uie.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); 226uie3D.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); 294public abstract Visual RootVisual 417protected void RootChanged(Visual oldRoot, Visual newRoot)
System\Windows\UIElement.cs (20)
450internal static void PropagateSuspendLayout(Visual v) 474Visual cv = v.InternalGetVisualChild(i); 487internal static void PropagateResumeLayout(Visual parent, Visual v) 533Visual cv = v.InternalGetVisualChild(i); 601|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 722for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 740for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 814|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 1443Visual parentAsVisual = parent as Visual; 1494if (oldParent is Visual) 1496((Visual) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4240internal static void InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) 4247Visual vChild = child as Visual;
System\Windows\UIElement3D.cs (10)
138Visual parentAsVisual = parent as Visual; 146parentAsVisual.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 158parentAsVisual3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 186if (oldParent is Visual) 188((Visual)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 192((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1401if (vChild is Visual) 1403((Visual)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (443)
MS\Internal\Annotations\Anchoring\PathNode.cs (2)
235Visual visual = current as Visual;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
115Visual element = selection as Visual;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
143Visual parent = VisualTreeHelper.GetParent(_adornerLayer) as Visual;
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
101protected override Visual GetVisualChild(int index)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
613foreach (Visual child in Children)
MS\Internal\AppModel\INavigator.cs (1)
300Visual FindRootViewer();
MS\Internal\AppModel\NavigationHelper.cs (4)
15internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName) 18if (content == null || content is Visual) 19return content as Visual; 31Visual v = cp.InternalGetVisualChild(0);
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
258Visual visual = hitTestResult.VisualHit as Visual;
MS\Internal\Controls\TemplatedAdorner.cs (1)
106protected override Visual GetVisualChild(int index)
MS\Internal\Data\ObjectRef.cs (9)
511Visual v = d as Visual; 523Visual v2 = layout as Visual; 526Visual prevChild = null; //child at j-1th index 585private int IndexOf(Visual parent, Visual child, out Visual prevChild) 587Visual temp;
MS\Internal\Documents\ContentHostHelper.cs (2)
144private static void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 164Visual child = root.InternalGetVisualChild(i);
MS\Internal\Documents\DocumentGrid.cs (9)
258public Rect MakeVisible(Visual v, Rect r) 281MakeVisibleAsync(new MakeVisibleData(o as Visual, cp, r), pageNumber); 998protected override Visual GetVisualChild(int index) 1497Visual current = (Visual)visiblePages[i]; 1804if (((Visual)this).IsAncestorOf(data.Visual)) 3357public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3367public Visual Visual 3388private Visual _visual;
MS\Internal\Documents\DocumentGridPage.cs (1)
168protected override Visual GetVisualChild(int index)
MS\Internal\Documents\DocumentPageHost.cs (7)
45internal static void DisconnectPageVisual(Visual pageVisual) 51Visual currentParent = VisualTreeHelper.GetParent(pageVisual) as Visual; 77internal Visual PageVisual 121protected override Visual GetVisualChild(int index) 127return VisualTreeHelper.GetParent(_pageVisual) as Visual; 146private Visual _pageVisual;
MS\Internal\Documents\DocumentViewerHelper.cs (5)
341if (focusedElement != null && focusedElement is Visual && 452internal static Rect CalculateVisibleRect(Rect visibleRect, Visual originalVisual) 454Visual visual = VisualTreeHelper.GetParent(originalVisual) as Visual; 474visual = VisualTreeHelper.GetParent(visual) as Visual;
MS\Internal\Documents\FlowDocumentView.cs (2)
225protected override Visual GetVisualChild(int index) 582Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle)
MS\Internal\Documents\MultiPageTextView.cs (4)
1246private Transform GetTransformToAncestor(Visual innerScope) 1260private Rect TransformToAncestor(Visual innerScope, Rect rect) 1277private Point TransformToAncestor(Visual innerScope, Point point) 1291private Point TransformToDescendant(Visual innerScope, Point point)
MS\Internal\Documents\ScrollData.cs (1)
170internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle)
MS\Internal\Documents\TextBoxView.cs (2)
228Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle) 550protected override Visual GetVisualChild(int index)
MS\Internal\Documents\TextContainerHelper.cs (3)
358iterate((Visual)element, peers); 731private static void iterate(Visual parent, List<AutomationPeer> peers) 737Visual child = parent.InternalGetVisualChild(i);
MS\Internal\Documents\TextDocumentView.cs (2)
555Visual visual = _owner.Visual; 558visual = VisualTreeHelper.GetParent(visual) as Visual;
MS\Internal\Documents\UIElementIsland.cs (2)
39Visual currentParent = VisualTreeHelper.GetParent(_child) as Visual;
MS\Internal\FrameworkObject.cs (6)
305Visual visual; 309if ((visual = fo.DO as Visual) != null) 412Visual visual; 416if ((visual = _do as Visual) != null) 873Visual visual = _do as Visual;
MS\Internal\Helper.cs (2)
444Visual v = d as Visual;
MS\Internal\Ink\LassoHelper.cs (1)
55public Visual Visual
MS\Internal\Ink\PenCursorManager.cs (1)
280private static RenderTargetBitmap RenderVisualToBitmap(Visual visual, int width, int height)
MS\Internal\LayoutDump.cs (35)
42internal static string DumpLayoutAndVisualTreeToString(string tagName, Visual root) 65internal static void DumpLayoutAndVisualTree(XmlTextWriter writer, string tagName, Visual root) 197internal static void DumpVisual(XmlTextWriter writer, Visual visual, Visual parent) 240private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 294internal static void DumpDocumentPage(XmlTextWriter writer, DocumentPage page, Visual parent) 332private static void DumpVisualChildren(XmlTextWriter writer, string tagName, Visual visualParent) 353internal static void DumpUIElementChildren(XmlTextWriter writer, string tagName, Visual visualParent) 417internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 423Visual child = visual.InternalGetVisualChild(i); 643private static void DumpLineResults(XmlTextWriter writer, ReadOnlyCollection<LineResult> lines, Visual visualParent) 684private static void DumpParagraphResults(XmlTextWriter writer, string tagName, ReadOnlyCollection<ParagraphResult> paragraphs, Visual visualParent) 732private static void DumpTextParagraphResult(XmlTextWriter writer, TextParagraphResult paragraph, Visual visualParent) 741Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 754private static void DumpContainerParagraphResult(XmlTextWriter writer, ContainerParagraphResult paragraph, Visual visualParent) 763Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 772private static void DumpFloaterParagraphResult(XmlTextWriter writer, FloaterParagraphResult paragraph, Visual visualParent) 781Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 790private static void DumpUIElementParagraphResult(XmlTextWriter writer, UIElementParagraphResult paragraph, Visual visualParent) 799Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 807private static void DumpFigureParagraphResult(XmlTextWriter writer, FigureParagraphResult paragraph, Visual visualParent) 816Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 825private static void DumpTableParagraphResult(XmlTextWriter writer, TableParagraphResult paragraph, Visual visualParent) 830Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 837Visual rowVisual = visual.InternalGetVisualChild(i); 843Visual cellVisual = rowVisual.InternalGetVisualChild(j); 854private static void DumpSubpageParagraphResult(XmlTextWriter writer, SubpageParagraphResult paragraph, Visual visualParent) 863Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 872private static void DumpColumnResults(XmlTextWriter writer, ReadOnlyCollection<ColumnResult> columns, Visual visualParent) 898private static Visual DumpParagraphOffset(XmlTextWriter writer, ParagraphResult paragraph, Visual visualParent) 905Visual visual = (Visual)prop.GetValue(paraClient, null); 943private static void DumpTableCell(XmlTextWriter writer, ParagraphResult paragraph, Visual cellVisual, Visual tableVisual)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
88public override Visual Visual
MS\Internal\PtsHost\Line.cs (2)
419Visual currentParent = VisualTreeHelper.GetParent(inlineObject.UIElementIsland) as Visual;
MS\Internal\PtsHost\PageVisual.cs (1)
62internal Visual Child
MS\Internal\PtsHost\PtsHelper.cs (3)
82Visual paraVisual = floatingElementList[index].Visual; 268Visual currentParent = VisualTreeHelper.GetParent(paraClient.Visual) as Visual;
MS\Internal\PtsHost\TableParaClient.cs (3)
1500Visual visual) 1575Visual currentParent = VisualTreeHelper.GetParent(cellParaClient.Visual) as Visual;
MS\Internal\PtsHost\TextParaClient.cs (1)
2296Visual temp = Visual;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
114Visual currentParent = VisualTreeHelper.GetParent(uiElementIsland) as Visual;
MS\Internal\Text\ComplexLine.cs (2)
167Visual currentParent = VisualTreeHelper.GetParent(inlineObject.Element) as Visual;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
42internal static bool IsConnectedToPresentationSource( Visual visual )
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
431public AnnotatedDocumentPage(DocumentPage basePage, Visual visual, Size pageSize, Rect bleedBox, Rect contentBox)
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
244Visual visual = textView.RenderScope; 264visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (3)
288internal static Visual FindVisualByType(Visual parent, Type type) 295Visual visual = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
137private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 159private static bool iterate(Visual parent, bool includeInvisibleItems, IteratorCallback callback) 168Visual child = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (3)
83private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 105private static bool iterate(Visual parent, IteratorCallback callback) 114Visual child = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
173Visual visual = textView.RenderScope; 196visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\BroadcastEventHelper.cs (6)
464Visual visual; 471else if ((visual = d as Visual) != null) 582Visual v = (Visual)fo.FE; 688Visual v; 694if ((v = d as Visual) != null)
System\Windows\Controls\AccessText.cs (1)
530protected override Visual GetVisualChild(int index)
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
139protected override Visual GetVisualChild(int index)
System\Windows\Controls\ComboBox.cs (5)
1596Visual visual; 1604else if ((visual = d as Visual) != null) 1735Visual originalSource = e.OriginalSource as Visual; 1736Visual textBox = comboBox.EditableTextBoxSite;
System\Windows\Controls\ContentPresenter.cs (1)
1040Visual result = DefaultExpansion(cp.Content, cp);
System\Windows\Controls\DataGridHelper.cs (1)
566if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
System\Windows\Controls\Decorator.cs (1)
169protected override Visual GetVisualChild(int index)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1158targetRect = MakeVisible((IScrollInfo)RenderScope, (Visual)ich, rects[0]); 1596private static Rect MakeVisible(IScrollInfo scrollInfo, Visual visual, Rect rectangle)
System\Windows\Controls\Frame.cs (2)
750Visual v = TemplateChild; 761Visual INavigatorImpl.FindRootViewer()
System\Windows\Controls\Grid.cs (4)
312protected override Visual GetVisualChild(int index) 727/// <see cref="Visual.OnVisualChildrenChanged"/> 2976Visual child = d as Visual;
System\Windows\Controls\GridSplitter.cs (1)
414protected override Visual GetVisualChild(int index)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
920Visual headerAsVisual = d as Visual; 924Visual parent = VisualTreeHelper.GetParent(headerAsVisual) as Visual; 1229if (!(srcHeader.Content is Visual))
System\Windows\Controls\HeaderedContentControl.cs (1)
338if (!(item is Visual) && (HeaderIsItem || !HasNonDefaultValue(HeaderProperty)))
System\Windows\Controls\InkCanvas.cs (3)
365protected override Visual GetVisualChild(int index) 2219internal void BeginDynamicSelection(Visual visual) 2263internal StrokeCollection EndDynamicSelection(Visual visual)
System\Windows\Controls\InkPresenter.cs (5)
68public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 80public void DetachVisuals(Visual visual) 242protected override Visual GetVisualChild(int index) 331internal bool ContainsAttachedVisual(Visual visual) 341internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\ItemsControl.cs (6)
1328Visual visual = container as Visual; 1331Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 3095Visual parent = VisualTreeHelper.GetParent(element) as Visual;
System\Windows\Controls\ItemsPresenter.cs (2)
177Visual parent = VisualTreeHelper.GetParent(groupItem) as Visual;
System\Windows\Controls\ListBox.cs (2)
590Visual visualOldFocus = oldFocus as Visual;
System\Windows\Controls\Page.cs (2)
646Visual visualParent = VisualTreeHelper.GetParent(this) as Visual;
System\Windows\Controls\Panel.cs (2)
372protected override Visual GetVisualChild(int index) 858/// <see cref="Visual.OnVisualChildrenChanged"/>
System\Windows\Controls\PopupControlService.cs (7)
688DependencyObject v = o as Visual; 703((v is Visual && ((Visual)v).IsDescendantOf(_currentToolTip)) || 866Visual visualParent = ichParent as Visual; 1070DependencyObject v = o as Visual; 1109nearestVisual = o as Visual;
System\Windows\Controls\Primitives\BulletDecorator.cs (3)
214protected override Visual GetVisualChild(int index) 376private TextBlock FindText(Visual root) 418private FlowDocumentScrollViewer FindFlowDocumentScrollViewer(Visual root)
System\Windows\Controls\Primitives\ButtonBase.cs (2)
84Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
461protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\DocumentPageView.cs (6)
343Visual pageVisual; 465protected override Visual GetVisualChild(int index) 908Visual visualParent; 921visualParent = VisualTreeHelper.GetParent(this) as Visual; 929visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 1002private Visual _pageVisualClone;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
910private void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 924Visual child = root.InternalGetVisualChild(i); 957private AdornerDecorator FindAdornerDecorator(Visual root) 973Visual child = root.InternalGetVisualChild(i);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
122protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\IScrollInfo.cs (1)
114Rect MakeVisible(Visual visual, Rect rectangle);
System\Windows\Controls\Primitives\MenuBase.cs (1)
808if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (24)
1410private static Visual GetRootVisual(Visual child) 1420return root as Visual; 1424private Visual GetTarget() 1426Visual targetVisual = PlacementTarget; 1474Visual targetVisual = GetTarget(); 1574private void BuildWindow(Visual targetVisual) 1814Visual rootVisual = parent == null ? null : GetRootVisual(this); 2343Visual rootVisual = GetRootVisual(target); 2424private static GeneralTransform TransformToClient(Visual visual, Visual rootVisual) 2979internal Point ClientToScreen(Visual rootVisual, Point clientPoint) 3018internal NativeMethods.POINT GetMouseCursorPos(Visual targetVisual) 3037Visual rootVisual = hwndSource.RootVisual; 3116internal static Matrix GetTransformToDevice(Visual targetVisual) 3147internal void SetWindowRootVisual(Visual v) 3152internal static bool IsVisualPresentationSourceNull(Visual visual) 3250private static Visual FindMainTreeVisual(Visual v) 3282return root as Visual; 3289internal void BuildWindow(int x, int y, Visual placementTarget, 3295Visual mainTreeVisual = placementTarget; 3417private static PresentationSource GetPresentationSource(Visual visual) 3533var rootVisual = Popup.GetRootVisual(target);
System\Windows\Controls\Primitives\PopupRoot.cs (1)
66protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (6)
174public Rect MakeVisible(Visual visual, Rect rectangle) 337protected override Visual GetVisualChild(int index) 548internal Rect MakeVisible(Visual visual, Rect rectangle, bool throwOnError) 565|| visual == (Visual)this 728Visual child = Content as Visual;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1669Visual visual = this.RenderScope; 1676visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Controls\Primitives\Track.cs (3)
114_visualChildren = new Visual[3]; 365protected override Visual GetVisualChild(int index) 847private Visual[] _visualChildren;
System\Windows\Controls\PrintDialog.cs (1)
338Visual visual,
System\Windows\Controls\RadioButton.cs (1)
137Visual rootScope = KeyboardNavigation.GetVisualRoot(this);
System\Windows\Controls\ScrollViewer.cs (11)
184internal void MakeVisible(Visual child, Rect rect) 1019Visual baseRoot = KeyboardNavigation.GetVisualRoot(scp); 1020Visual elementRoot = KeyboardNavigation.GetVisualRoot(element); 2113internal MakeVisibleParams(Visual child, Rect targetRect) 2118internal Visual Child; 2229Visual child = cmd.MakeVisibleParam.Child; 2230Visual visi = isi as Visual; 2456Visual child = e.TargetObject as Visual; 2476child = contentHost as Visual;
System\Windows\Controls\Stack.cs (3)
232public Rect MakeVisible(Visual visual, Rect rectangle) 241|| visual == (Visual)this 845private int FindChildIndexThatParentsVisual(Visual child)
System\Windows\Controls\StickyNote.cs (2)
1224Visual source = args.OriginalSource as Visual;
System\Windows\Controls\TextAdaptor.cs (11)
239Visual visual = renderScope; 262visual = VisualTreeHelper.GetParent(visual) as Visual; 345Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 366visual = VisualTreeHelper.GetParent(visual) as Visual; 375private Point ClientToScreen(Point point, Visual visual) 394/// A version of <see cref="ClientToScreen(Point, Visual)"/> for compatibility purposes. 398private Point ObsoleteClientToScreen(Point point, Visual visual) 416private Point ScreenToClient(Point point, Visual visual) 434/// A version of <see cref="ScreenToClient(Point, Visual)"/> for compatibility purposes. 438private Point ObsoleteScreenToClient(Point point, Visual visual)
System\Windows\Controls\TextBlock.cs (2)
1150protected override Visual GetVisualChild(int index) 1908internal void RemoveChild(Visual child)
System\Windows\Controls\ToolBarTray.cs (1)
472protected override Visual GetVisualChild(int index)
System\Windows\Controls\TreeView.cs (2)
808Visual v = o as Visual;
System\Windows\Controls\UIElementCollection.cs (6)
254Visual[] visuals = new Visual[cnt]; 350Visual[] visuals = new Visual[count]; 379internal void MoveVisualChild(Visual visual, Visual destination)
System\Windows\Controls\ViewBox.cs (1)
233protected override Visual GetVisualChild(int index)
System\Windows\Controls\ViewPort3D.cs (1)
177protected override Visual GetVisualChild(int index)
System\Windows\Controls\VirtualizingStackPanel.cs (4)
1477public Rect MakeVisible(Visual visual, Rect rectangle) 1490|| visual == (Visual)this 11029private double FindScrollOffset(Visual v) 11108ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage;
System\Windows\DescendentsWalker.cs (3)
110if (d is Visual v) 127private void WalkVisualChildren( Visual v ) 314Visual child = feParent.InternalGetVisualChild(i);
System\Windows\Documents\AdornerDecorator.cs (2)
160Visual old = base.Child; 204protected override Visual GetVisualChild(int index)
System\Windows\Documents\AdornerHitTestResult.cs (1)
33 internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt)
System\Windows\Documents\AdornerLayer.cs (16)
283Visual visual = result.VisualHit; 292visual = (Visual)VisualTreeHelper.GetParent(visual); 308static public AdornerLayer GetAdornerLayer(Visual visual) 312Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 321parent = VisualTreeHelper.GetParent(parent) as Visual; 381protected override Visual GetVisualChild(int index) 702Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 764Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 819private CombinedGeometry GetClipGeometry(Visual element, Adorner adorner) 821Visual oldElement = null; 824Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 860element = (Visual)VisualTreeHelper.GetParent(element);
System\windows\Documents\CaretElement.cs (1)
104protected override Visual GetVisualChild(int index)
System\Windows\Documents\CompositionAdorner.cs (2)
127Visual parent2d = VisualTreeHelper.GetParent(this.AdornedElement) as Visual;
System\Windows\Documents\DocumentSequence.cs (1)
1129public override Visual Visual
System\Windows\Documents\DocumentSequenceTextView.cs (2)
493Visual visual = _docPage.Visual; 497visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Documents\FixedDocument.cs (1)
1401public override Visual Visual
System\Windows\Documents\FixedPage.cs (1)
702protected override Visual GetVisualChild(int index)
System\Windows\Documents\FixedPageStructure.cs (1)
588GeneralTransform transform = ((Visual)dependencyObject).TransformToAncestor(fp);
System\Windows\Documents\FixedTextView.cs (3)
680Visual visual = _docPage.Visual; 684visual = VisualTreeHelper.GetParent(visual) as Visual; 1230private Visual VisualRoot
System\Windows\Documents\FlowDocument.cs (1)
911parentOfEmbeddedElement = VisualTreeHelper.GetParent((Visual)element);
System\Windows\Documents\RubberbandSelector.cs (4)
189Visual v = GetVisual(-_selectionRect.Left, -_selectionRect.Top); 200private Visual GetVisual(double offsetX, double offsetY) 221private void CloneVisualTree(ContainerVisual parent, Visual old) 246Visual child = old.InternalGetVisualChild(i);
System\Windows\Documents\Serialization\SerializerWriter.cs (6)
25public abstract void Write(Visual visual); 30public abstract void Write(Visual visual, PrintTicket printTicket); 35public abstract void WriteAsync(Visual visual); 40public abstract void WriteAsync(Visual visual, object userState); 46public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 52public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
System\Windows\Documents\Serialization\SerializerWriterCollator.cs (6)
35public abstract void Write(Visual visual); 40public abstract void Write(Visual visual, PrintTicket printTicket); 45public abstract void WriteAsync(Visual visual); 50public abstract void WriteAsync(Visual visual, object userState); 55public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 60public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
System\windows\Documents\TextEditorContextMenu.cs (2)
284for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual)
System\windows\Documents\TextEditorDragDrop.cs (3)
405ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 436private ITextPointer GetDropPosition(Visual target, Point point) 535ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope));
System\windows\Documents\TextEditorMouse.cs (6)
607Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 610scrollViewer = VisualTreeHelper.GetParent(scrollViewer) as Visual; 768if(hitTestResult.VisualHit is Visual) check = ((Visual)hitTestResult.VisualHit).IsDescendantOf(renderScope); 794else if (hitElement is Visual)
System\Windows\Documents\TextPointerBase.cs (6)
884Visual templatedParent; 889templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 892templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 895else if (thisPointer.TextContainer.Parent is Visual) 897Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 899templatedParent = (Visual)thisPointer.TextContainer.Parent;
System\windows\Documents\TextSelection.cs (2)
2581if (parent == null && element is Visual) 2587else if (element is Visual)
System\Windows\Documents\TextStore.cs (4)
851UiScope as Visual, 2763private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes) 2842source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 2845Visual root = source.RootVisual;
System\Windows\FrameworkElement.cs (14)
640protected override Visual GetVisualChild(int index) 2214for (Visual v = VisualTreeHelper.GetParent(this) as Visual; 2216v = VisualTreeHelper.GetParent(v) as Visual) 2475Visual newParentAsVisual = newParent as Visual; 2482((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2489Visual oldParentAsVisual = oldParent as Visual; 2496((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2939Visual visualParentAsVisual = visualParent as Visual; 3127Visual visualParentAsVisual = visualParent as Visual;
System\Windows\Input\KeyboardNavigation.cs (40)
145internal static Visual GetVisualRoot(DependencyObject d) 147if (d is Visual || d is Visual3D) 513Debug.Assert(contentHostParent is Visual, "contentHostParent should be Visual"); 571if (!(contentHost is Visual) || !AdornedElement.IsAncestorOf((Visual)contentHost)) 653protected override Visual GetVisualChild(int index) 670if (_adornedContentElement != null && (_contentHostParent==null || VisualTreeHelper.GetParent(_contentHostParent as Visual) == null)) 700if (contentHost is Visual && AdornedElement.IsAncestorOf((Visual)contentHost)) 702_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 779Visual visualParent = parent as Visual; 782visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 916Visual visualRoot = GetVisualRoot(focusTarget); 1032Visual visualRoot = GetVisualRoot(currentElement); 1088Visual visual = currentElement as Visual; 1240Visual visual = element as Visual; 1248Visual rootVisual = GetVisualRoot(visual); 1480DependencyObject elementAsVisual = e as Visual; 1541DependencyObject elementAsVisual = e as Visual; 1587Visual visualFocusedElement = focusedElement as Visual; 1654DependencyObject elementAsVisual = e as Visual; 1719DependencyObject elementAsVisual = e as Visual; 1749if (e is Visual || e is Visual3D) 2373Visual rootVisual = GetVisualRoot(uiElement); 2403Visual parent = parentICH as Visual; 2406Visual rootVisual = GetVisualRoot(parent); 2433Visual rootVisual = GetVisualRoot(uiElement3D); 2434Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(uiElement3D); 2622Visual sourceVisual = sourceElement as Visual; 2623Visual targetVisual = targetElement as Visual; 3275Visual eventSourceVisual = eventSource as Visual; 3397Visual root = source.RootVisual;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
827case 733: t = () => typeof(Visual); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11207typeof(System.Windows.Media.Visual),
System\Windows\Markup\KnownTypes.cs (1)
6287case KnownElements.Visual: t = typeof(System.Windows.Media.Visual); break;
System\Windows\Navigation\NavigationService.cs (6)
436if (_navigatorHostImpl != null && !(_bp is Visual)) 438Visual v = _navigatorHostImpl.FindRootViewer(); 450Debug.Assert(!(_bp is Visual)); 451Visual v = _navigatorHostImpl.FindRootViewer(); 1073internal void VisualTreeAvailable(Visual v) 4123private Visual _oldRootVisual;
System\Windows\Navigation\NavigationWindow.cs (1)
924Visual INavigatorImpl.FindRootViewer()
System\Windows\StyleHelper.cs (1)
5597return (value is Visual) || (value is ContentElement);
System\Windows\Window.cs (3)
2114/// <param name="visualAdded">The <see cref="Visual"/> that was added to the collection</param> 2115/// <param name="visualRemoved">The <see cref="Visual"/> that was removed from the collection</param> 7504internal Visual RootVisual
ReachFramework (113)
AlphaFlattener\BrushProxy.cs (1)
3014Visual visual = bcb.Target;
AlphaFlattener\Flattener.cs (1)
461static void SerializeVisual(Visual visual, double width, double height, String filename)
AlphaFlattener\Interfaces.cs (1)
58Visual node,
AlphaFlattener\MetroDevice.cs (1)
712Visual node,
AlphaFlattener\Utility.cs (4)
1775public static Transform GetVisualTransform(Visual visual) 1892Visual visual, 1929private static Visual CreateVisualFromDrawing(Drawing drawing) 1976Visual visual,
Serialization\DrawingContextFlattener.cs (3)
77Visual node, 349Visual visual, 920Visual node,
Serialization\Manager\NGCSerializationManager.cs (5)
259else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 589Visual visual 661if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 673(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ) 695(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) )
Serialization\Manager\NGCSerializationManagerAsync.cs (5)
497else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 829Visual visual 932if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 944(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ) 994(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) )
Serialization\Manager\NGCSerializer.cs (9)
165Visual visual = (Visual)serializedObject as Visual; 232Visual visual = (Visual)serializedObject as Visual; 314Visual pageRootVisual = dp.Visual; 953Visual visual = uiElement as Visual;
Serialization\Manager\NGCSerializerAsync.cs (9)
820Visual visual = (Visual)serializableObjectContext.TargetObject as Visual; 921Visual pageRootVisual = dp.Visual; 1021Visual visual = serializedObject as Visual; 1040Visual visual = (Visual)serializableObjectContext.TargetObject as Visual;
Serialization\Manager\NGCUIElementCollectionSerializerAsync.cs (2)
201Visual visual = uiElement as Visual;
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
189private void SerializeChild(Visual child, SerializableObjectContext parentContext)
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
227private void SerializeChild(Visual child, SerializableObjectContext parentContext)
Serialization\Manager\ReachFixedPageSerializer.cs (3)
185Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 388Visual fixedPageAsVisual
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
210Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 360Visual fixedPageAsVisual
Serialization\Manager\ReachSerializationUtils.cs (12)
338else if(typeof(System.Windows.Media.Visual).IsAssignableFrom(_serializedObject.GetType())) 367else if(typeof(System.Windows.Media.Visual).IsAssignableFrom(_serializedObject.GetType())) 569Visual visual = _serializedObject as Visual; 684Visual visual, 773Visual root = page.Visual; 812internal void SerializeLinksInVisual(Visual visual) 836private void SerializeLinksForIContentHost(IContentHost contentHost, Visual root) 860private void SerializeLinksInLogicalTree(DependencyObject dependencyObject, IContentHost contentHost, Visual root) 885private void SerializeLinkTargetForElement(IInputElement element, IContentHost contentHost, Visual root) 911Visual contentVisual = contentHost as Visual;
Serialization\Manager\ReachUIElementCollectionSerializer.cs (2)
138Visual visual = uiElement as Visual;
Serialization\Manager\ReachUIElementCollectionSerializerAsync.cs (2)
202Visual visual = uiElement as Visual;
Serialization\Manager\ReachVisualSerializer.cs (14)
40Visual v = serializedObject as Visual; 44throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 82Visual visual, 107Visual v = ctx.GetNextChild(); 176Visual v = serializedObject as Visual; 180throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 215public NodeContext(Visual v) 225public Visual NodeVisual 237public Visual GetNextChild() 239Visual child = null; 245child = (Visual) VisualTreeHelper.GetChild(nodeVisual, index); 256private Visual nodeVisual;
Serialization\Manager\ReachVisualSerializerAsync.cs (8)
73Visual v = serializedObject as Visual; 77throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 111Visual visual, 158Visual v = ctx.GetNextChild(); 226Visual v = serializedObject as Visual; 230throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
212Visual child,
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
175Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 346Visual fixedPageAsVisual
Serialization\Manager\XpsOMSerializationManager.cs (1)
190else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
343else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\Manager\XpsSerializationManager.cs (5)
347else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 452else if (writerType == typeof(Visual)) 563else if (writerType == typeof(Visual)) 1069if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 1080(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ||
Serialization\Manager\XpsSerializationManagerAsync.cs (1)
439else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\VisualSerializer.cs (2)
868protected Visual _node; 2341Visual node,
Serialization\VisualTreeFlattener.cs (5)
428internal bool StartVisual(Visual visual) 641internal void VisualWalk(Visual visual) 650VisualWalk((Visual) VisualTreeHelper.GetChild(visual,i)); 763static internal void SaveAsXml(Visual visual, System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, String fileName) 827static internal void Walk(Visual visual, IMetroDrawingContext dc, Size pageSize, TreeWalkProgress treeWalkProgress)
Serialization\XpsFontSerializationService.cs (1)
53else if(type == typeof(Visual))
SerializerFactory\XpsSerializerWriter.cs (6)
57public override void Write(Visual visual) 69public override void Write(Visual visual, PrintTicket printTicket) 81public override void WriteAsync(Visual visual) 91public override void WriteAsync(Visual visual, PrintTicket printTicket) 101public override void WriteAsync(Visual visual, object userState) 111public override void WriteAsync(Visual visual, PrintTicket printTicket, object userState)
System.Windows.Controls.Ribbon (20)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
49protected override Visual GetVisualChild(int index)
Microsoft\Windows\Controls\KeyTipService.cs (6)
802PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1261PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1305static private AdornerLayer GetAdornerLayer(Visual visual, out bool isScrollAdornerLayer) 1310Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 1338parent = VisualTreeHelper.GetParent(parent) as Visual;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
800public Rect MakeVisible(Visual visual, Rect rectangle) 806|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
889public Rect MakeVisible(Visual visual, Rect rectangle) 895|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
126public Rect MakeVisible(Visual visual, Rect rectangle) 132|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (5)
845Visual visual; 853else if ((visual = d as Visual) != null) 1256Visual originalSource = e.OriginalSource as Visual; 1257Visual textBox = EditableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2517public static PresentationSource GetPresentationSourceFromVisual(Visual visual) 2918internal static Matrix GetTransformToDevice(Visual targetVisual)
WindowsFormsIntegration (15)
System\Windows\Integration\ApplicationInterop.cs (2)
416private static SWM.Visual FindRootVisual(SWM.Visual x)
System\Windows\Integration\HostUtils.cs (13)
84internal static Visual GetRootVisual(Visual descendant) 87Visual root = descendant; 92Visual visual = current as Visual; 102internal static Point TransformToRootPoint(Visual element, Point pointElement) 104Visual rootVisual = GetRootVisual(element); 108internal static Point TransformToParentPoint(Visual element, Visual ancestor, Point pointElement) 309internal static RenderTargetBitmap GetRenderTargetBitmapForVisual(int width, int height, Visual visualToRender) 342internal static Vector GetScale(Visual visual) 348internal static Vector GetScale(Visual visual, out bool skewed) 361internal static bool IsRotated(Visual visual)