3 types derived from Visual
PresentationCore (3)
System\Windows\Media\ContainerVisual.cs (1)
26public class ContainerVisual : Visual
System\Windows\Media3D\Viewport3DVisual.cs (1)
32public sealed class Viewport3DVisual : Visual, DUCE.IResource, IVisual3DContainer
System\Windows\UIElement.cs (1)
77public 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)
59internal static Visual GetParent( Visual el ) 61return VisualTreeHelper.GetParent(el) as Visual; 64internal static Visual GetFirstChild( Visual el ) 74internal static Visual GetLastChild( Visual el ) 85internal static Visual GetNextSibling( Visual el ) 89Visual parent = VisualTreeHelper.GetParent(el) as Visual; 99internal static Visual GetPreviousSibling( Visual el ) 103Visual parent = VisualTreeHelper.GetParent(el) as Visual; 113internal static Visual GetRoot( Visual el ) 116Visual scan = el; 119Visual test = VisualTreeHelper.GetParent(scan) as Visual; 131Visual parent = GetRoot( element ); 164internal static Visual GetElementFromPoint( IntPtr hwnd, Visual root, Point pointScreen ) 174Visual visual = (result != null) ? result.VisualHit : null; 181internal static void CheckEnabled(Visual visual) 265private static Visual FindVisibleSibling ( Visual parent, int start, bool searchForwards) 272Visual sibling = parent.InternalGetVisualChild(index); 289private static Visual FindVisibleSibling(Visual parent, Visual child, bool searchForwards) 300Visual current = parent.InternalGetVisualChild(childIndex);
MS\Internal\DeferredElementTreeState.cs (2)
33Visual v = element as Visual;
MS\Internal\Ink\Renderer.cs (9)
207internal Visual RootVisual { get { return _rootVisual; } } 281internal void AttachIncrementalRendering(Visual visual, DrawingAttributes drawingAttributes) 293foreach(Visual alreadyAttachedVisual in _attachedVisuals) 305_attachedVisuals = new List<Visual>(); 327internal void DetachIncrementalRendering(Visual visual) 345internal bool ContainsAttachedIncrementalRenderingVisual(Visual visual) 358internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes) 608private void DetachVisual(Visual visual) 707private List<Visual> _attachedVisuals = null;
MS\Internal\Media\VisualTreeUtils.cs (11)
63Visual visual; 70Visual.PropagateFlags(visual, flags, proxyFlags); 85Visual visual; 106Visual visual; 224if (!(element is Visual || element is Visual3D)) 236internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 252internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 282internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D) 320private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D) 322Visual elementAsVisual = element as Visual;
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (3)
83internal GeneralTransform2DTo3DTo2D(Viewport2DVisual3D visual3D, Visual fromVisual) 95Visual visual3Dchild = visual3D.Visual; 102Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
MS\Internal\SynchronizedInputHelper.cs (1)
131if(o is Visual || o is Visual3D)
MS\Internal\UIElementHelper.cs (2)
100if (child is Visual) 102myParent = ((Visual)child).InternalVisualParent;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PointUtil.cs (4)
85public static Point ApplyVisualTransform(Point point, Visual v, bool inverse) 95public static Point TryApplyVisualTransform(Point point, Visual v, bool inverse, bool throwOnError, out bool success) 141internal static Matrix GetVisualTransform(Visual v) 224internal static Rect ElementToRoot(Rect rectElement, Visual element, PresentationSource presentationSource)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
46internal static bool IsConnectedToPresentationSource( Visual visual )
System\Windows\Automation\Peers\UIElementAutomationPeer.cs (3)
85internal static AutomationPeer GetRootAutomationPeer(Visual rootVisual, IntPtr hwnd) 281Visual visualParent = parent as Visual;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
165Visual 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)
14/// Stores DPI information from which a <see cref="System.Windows.Media.Visual"/>
System\Windows\Input\FocusManager.cs (1)
385if (d is Visual || d is Visual3D)
System\Windows\Input\IInputProvider.cs (1)
20bool ProvidesInputForRootVisual(Visual v);
System\Windows\Input\InputElement.cs (12)
63else if (o is Visual v) 111else if(o is Visual v) 172v = o as Visual; 200rootVisual is Visual && parentVisual is Visual3D) 227Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 229Visual vFrom = vFromAsDO as Visual; 263Visual rootTo = InputElement.GetRootVisual(to) as Visual; 305Visual vToAsVisual = vTo as Visual;
System\Windows\Input\Manipulation.cs (2)
299internal static UIElement FindManipulationParent(Visual visual) 310visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Input\ManipulationLogic.cs (1)
581PresentationSource presentationSource = PresentationSource.CriticalFromVisual((Visual)newContainer);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
291public Visual RootVisual
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
353Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 354Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
269Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (2)
128Visual rootVisual = (relativePresentationSource != null) ? relativePresentationSource.RootVisual : null; 129Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(containingVisual);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
1036PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInCollection.cs (1)
68PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (8)
89DependencyObject spicAddingVisual = spicAdding.Element as Visual; 95DependencyObject curV = _plugInCollectionList[i].Element as Visual; 101curV = _plugInCollectionList[i].Element as Visual; 197(plugInCollection.Element as Visual).IsAncestorOf(element as Visual)) 547source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 584Visual directlyOverVisual = mouseDevice.DirectlyOver as Visual;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (5)
297DependencyObject spicAddingVisual = spicAdding.Element as Visual; 303DependencyObject curV = _plugInCollectionList[i].Element as Visual; 309curV = _plugInCollectionList[i].Element as Visual; 532(plugInCollection.Element as Visual).IsAncestorOf(element as Visual))
System\Windows\Input\Stylus\Wisp\WispLogic.cs (3)
1848source = PresentationSource.CriticalFromVisual(_activeMousePlugInCollection.Element as Visual); 1885Visual directlyOverVisual = mouseDevice.DirectlyOver as Visual;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (1)
591PresentationSource source = PresentationSource.CriticalFromVisual(uiElement as Visual);
System\Windows\Input\Stylus\Wisp\WispStylusPlugInCollection.cs (1)
78PresentationSource presentationSource = PresentationSource.CriticalFromVisual(element as Visual);
System\Windows\Input\TouchDevice.cs (1)
1213if (currentChild is Visual || currentChild is Visual3D)
System\Windows\InterOp\HwndAppCommandInputProvider.cs (1)
33bool IInputProvider.ProvidesInputForRootVisual( Visual v )
System\Windows\InterOp\HwndKeyboardInputProvider.cs (3)
36public void OnRootChanged(Visual oldRoot, Visual newRoot) 44bool IInputProvider.ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
74bool IInputProvider.ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndPointerInputProvider.cs (1)
456public bool ProvidesInputForRootVisual(Visual v)
System\Windows\InterOp\HwndSource.cs (4)
553public override Visual RootVisual 569private Visual RootVisualInternal 575Visual oldRoot = _rootVisual; 2807private Visual _rootVisual;
System\Windows\InterOp\HwndStylusInputProvider.cs (1)
72bool IInputProvider.ProvidesInputForRootVisual(Visual v) => _source.RootVisual == v;
System\Windows\InterOp\HwndTarget.cs (6)
1413internal AutomationPeer EnsureAutomationPeer(Visual root) 1418internal static AutomationPeer EnsureAutomationPeer(Visual root, IntPtr handle) 1451private static IntPtr CriticalHandleWMGetobject(IntPtr wparam, IntPtr lparam, Visual root, IntPtr handle) 1829Visual visual = d as Visual; 2309public override Visual RootVisual
System\Windows\LayoutManager.cs (2)
95private void markTreeDirtyHelper(Visual v) 113Visual child = v.InternalGetVisualChild(i);
System\Windows\Media\BitmapCacheBrush.cs (6)
31public BitmapCacheBrush(Visual visual) 113Visual vVisual = InternalTarget; 158internal void AddRefResource(Visual visual, DUCE.Channel channel) 166internal void ReleaseResource(Visual visual, DUCE.Channel channel) 196AutoWrapVisual.Children.Remove((Visual)e.OldValue); 197AutoWrapVisual.Children.Add((Visual)e.NewValue);
System\Windows\Media\CompositionTarget.cs (4)
172public virtual Visual RootVisual 253Visual.PropagateFlags( 472private void SetRootVisual(Visual visual) 560private Visual _rootVisual;
System\Windows\Media\ContainerVisual.cs (1)
232protected sealed override Visual GetVisualChild(int index)
System\Windows\Media\DrawingVisualDrawingContext.cs (2)
32Visual ownerVisual 64private Visual _ownerVisual;
System\Windows\Media\Generated\BitmapCacheBrush.cs (13)
147Visual oldV = (Visual) e.OldValue; 173Visual newV = (Visual) e.NewValue; 210public Visual Target 214return (Visual) GetValue(TargetProperty); 257internal Visual InternalTarget 261return (Visual) GetValue(InternalTargetProperty); 331Visual vInternalTarget = InternalTarget; 397Visual vInternalTarget = InternalTarget; 419Visual vInternalTarget = InternalTarget; 542typeof(Visual), 569typeof(Visual),
System\Windows\Media\Generated\VisualBrush.cs (10)
89Visual oldV = (Visual) e.OldValue; 115Visual newV = (Visual) e.NewValue; 152public Visual Visual 156return (Visual) GetValue(VisualProperty); 224Visual vVisual = Visual; 307Visual vVisual = Visual; 327Visual vVisual = Visual; 436typeof(Visual),
System\Windows\Media\GeometryHitTestResult.cs (3)
29Visual visualHit, 49public new Visual VisualHit 53return (Visual) base.VisualHit;
System\Windows\Media\Imaging\BitmapVisualManager.cs (2)
59public void Render(Visual visual) 73internal void Render(Visual visual, Matrix worldTransform, Rect windowClip)
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
201public void Render(Visual visual)
System\Windows\Media\PointHitTestResult.cs (3)
28public PointHitTestResult(Visual visualHit, Point pointHit) : base(visualHit) 47public new Visual VisualHit 51return (Visual) base.VisualHit;
System\Windows\Media\Renderer.cs (2)
33Visual visual, 50Visual visual,
System\Windows\Media\Visual.cs (48)
488Visual child = GetVisualChild(i); 809Visual visual = GetVisualChild(i); 1097Visual child = GetVisualChild(i); 1792Visual child = GetVisualChild(i); 2103Visual child = GetVisualChild(i); 2304Visual child = GetVisualChild(i); 2531protected virtual Visual GetVisualChild(int index) 2540internal Visual InternalGetVisualChild(int index) 2562internal void InternalAddVisualChild(Visual child) 2570internal void InternalRemoveVisualChild(Visual child) 2589protected void AddVisualChild(Visual child) 2615Visual.PropagateFlags( 2620Visual.PropagateFlags( 2658protected void RemoveVisualChild(Visual child) 2701Visual.PropagateFlags( 2724Visual.PropagateFlags( 4103Visual eAsVisual = e as Visual; 4140Visual visual; 4169Visual currentAsVisual = current as Visual; 4201Visual current = this; 4208Visual currentParent = current._parent as Visual; 4230Visual current = this; 4245current = parent as Visual; 4320Visual ancestor) 4359public GeneralTransform TransformToDescendant(Visual descendant) 4376public GeneralTransform TransformToVisual(Visual visual) 4379Visual ancestorAsVisual = ancestor as Visual; 4445private GeneralTransform InternalTransformToAncestor(Visual ancestor, bool inverse) 4479internal bool TrySimpleTransformToAncestor(Visual ancestor, 4509Visual gAsVisual = g as Visual; 4573Visual visualForGenTransform = null; 4989Visual cv = InternalGetVisualChild(i); 5075Visual eAsVisual; 5080eAsVisual = e as Visual; 5093eAsVisual = e as Visual; 5130Visual eAsVisual; 5137eAsVisual = e as Visual; 5150eAsVisual = e as Visual; 5191Visual pe, 5197Visual v = pe.GetVisualChild(i); 5215Visual e, 5263Visual parentAsVisual = e._parent as Visual;
System\Windows\Media\VisualBrush.cs (4)
47public VisualBrush(Visual visual) 114Visual vVisual = Visual; 160internal void AddRefResource(Visual visual, DUCE.Channel channel) 168internal void ReleaseResource(Visual visual, DUCE.Channel channel)
System\Windows\Media\VisualCollection.cs (29)
50private Visual[] _items; 52private Visual _owner; 77internal Visual[] InternalArray { get { return _items; } } 82public VisualCollection(Visual parent) 94internal void VerifyAPIReadOnly(Visual other) 107internal void VerifyAPIReadWrite(Visual other) 211public void CopyTo(Visual[] array, int index) 270Visual[] newItems = new Visual[value]; 328public Visual this[int index] 352Visual child = _items[index]; 382private void ConnectChild(int index, Visual value) 423Visual child = _items[index]; 433Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 460public int Add(Visual visual) 495public int IndexOf(Visual visual) 535public void Remove(Visual visual) 542private void InternalRemove(Visual visual) 581Visual child = _items[i+1]; 634public bool Contains(Visual visual) 704public void Insert(int index, Visual visual) 725Visual child = _items[i]; 807Visual child = _items[i + count]; 827internal void Move(Visual visual, Visual destination) 853Visual child = _items[i + 1]; 869Visual child = _items[i - 1]; 926private Visual _currentElement; 978public Visual Current
System\Windows\Media\VisualTreeHelper.cs (31)
51return (reference is Visual) || (reference is Visual3D); 59Visual visual; 82Visual visual; 103public static DpiScale GetDpi(Visual visual) 112public static void SetRootDpi(Visual visual, DpiScale dpiInfo) 131Visual visual; 154Visual visual; 177internal static Visual GetContainingVisual2D(DependencyObject reference) 179Visual visual = null; 183visual = reference as Visual; 214Visual visual; 244if (current is Visual visual) 263Visual visual; 280public static Geometry GetClip(Visual reference) 289public static double GetOpacity(Visual reference) 298public static Brush GetOpacityMask(Visual reference) 307public static Vector GetOffset(Visual reference) 316public static Transform GetTransform(Visual reference) 325public static DoubleCollection GetXSnappingGuidelines(Visual reference) 334public static DoubleCollection GetYSnappingGuidelines(Visual reference) 343public static DrawingGroup GetDrawing(Visual reference) 352public static Rect GetContentBounds(Visual reference) 371public static Rect GetDescendantBounds(Visual reference) 390public static BitmapEffect GetBitmapEffect(Visual reference) 401public static BitmapEffectInput GetBitmapEffectInput(Visual reference) 412public static Effect GetEffect(Visual reference) 421public static CacheMode GetCacheMode(Visual reference) 430public static EdgeMode GetEdgeMode(Visual reference) 439public static HitTestResult HitTest(Visual reference, Point point) 446internal static HitTestResult HitTest(Visual reference, Point point, bool include2DOn3D) 457Visual reference,
System\Windows\Media3D\GeneralTransform2DTo3D.cs (1)
33Visual child = containingVisual3D.Visual;
System\Windows\Media3D\RayHitTestParameters.cs (1)
136Visual viewport2DVisual3DChild = viewport2DVisual3D.Visual;
System\Windows\Media3D\Viewport2DVisual3D.cs (11)
158internal static Point TextureCoordsToVisualCoords(Point uv, Visual visual) 241internal static Point VisualCoordsToTextureCoords(Point pt, Visual visual) 293public Visual Visual 295get { return (Visual)GetValue(VisualProperty); } 319Visual oldValue = (Visual)e.OldValue; 320Visual newValue = (Visual)e.NewValue; 371private void AddVisualChild(Visual child) 402private void RemoveVisualChild(Visual child) 875Visual visualChild = Visual;
System\Windows\Media3D\Viewport3DVisual.cs (3)
355Visual.PropagateFlags( 396child.SetParent(/* newParent = */ (Visual) null); // CS0121: Call is ambigious without casting null to Visual. 427Visual.PropagateFlags(
System\Windows\Media3D\Visual3D.cs (23)
470Visual.SetTreeBits( 482Visual.ClearTreeBits( 500internal event Visual.AncestorChangedEventHandler VisualAncestorChanged 504Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 517Visual.SetTreeBits( 528Visual.ClearTreeBits( 536Visual.AncestorChangedEventHandler newHandler = AncestorChangedEventField.GetValue(this); 562if (e is Visual) 564Visual.ProcessAncestorChangedNotificationRecursive(e, args); 577Visual.AncestorChangedEventHandler handler = AncestorChangedEventField.GetValue(eAsVisual3D); 953internal void SetParent(Visual newParent) 1303Visual visual; 1340return ((Visual)parent2D).IsDescendantOf(ancestor); 1706Visual gAsVisual = g as Visual; 1788public GeneralTransform3DTo2D TransformToAncestor(Visual ancestor) 1804internal GeneralTransform3DTo2D InternalTransformToAncestor(Visual ancestor) 2022Visual v = null; 2080Visual.PropagateFlags(viewport, flags, proxyFlags); 2142private static readonly UncommonField<Visual> _2DParent = 2143new UncommonField<Visual>(/* defaultValue = */ null); 2154private static readonly UncommonField<Visual.AncestorChangedEventHandler> AncestorChangedEventField 2155= new UncommonField<Visual.AncestorChangedEventHandler>();
System\Windows\Navigation\BaseUriHelper.cs (2)
594Visual vis = doCurrent as Visual;
System\Windows\PresentationSource.cs (8)
90public static PresentationSource FromVisual(Visual visual) 149uie.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); 159uie3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); 222uie.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie.OnVisualAncestorChanged); 236uie3D.VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(uie3D.OnVisualAncestorChanged); 304public abstract Visual RootVisual 427protected void RootChanged(Visual oldRoot, Visual newRoot)
System\Windows\UIElement.cs (20)
455internal static void PropagateSuspendLayout(Visual v) 479Visual cv = v.InternalGetVisualChild(i); 492internal static void PropagateResumeLayout(Visual parent, Visual v) 538Visual cv = v.InternalGetVisualChild(i); 606|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 727for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 745for(Visual v = VisualTreeHelper.GetParent(this) as Visual; v != null; v = VisualTreeHelper.GetParent(v) as Visual) 819|| ((Visual)this).CheckFlagsAnd(VisualFlags.IsLayoutSuspended)) 1448Visual parentAsVisual = parent as Visual; 1499if (oldParent is Visual) 1501((Visual) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4245internal static void InvalidateForceInheritPropertyOnChildren(Visual v, DependencyProperty property) 4252Visual vChild = child as Visual;
System\Windows\UIElement3D.cs (10)
153Visual parentAsVisual = parent as Visual; 161parentAsVisual.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 173parentAsVisual3D.VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 201if (oldParent is Visual) 203((Visual)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 207((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1416if (vChild is Visual) 1418((Visual)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (443)
MS\Internal\Annotations\Anchoring\PathNode.cs (2)
240Visual visual = current as Visual;
MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (2)
122Visual element = selection as Visual;
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (2)
147Visual parent = VisualTreeHelper.GetParent(_adornerLayer) as Visual;
MS\Internal\Annotations\Component\AnnotationAdorner.cs (1)
104protected override Visual GetVisualChild(int index)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
621foreach (Visual child in Children)
MS\Internal\AppModel\INavigator.cs (1)
306Visual FindRootViewer();
MS\Internal\AppModel\NavigationHelper.cs (4)
22internal static Visual FindRootViewer(ContentControl navigator, string contentPresenterName) 25if (content == null || content is Visual) 26return content as Visual; 38Visual v = cp.InternalGetVisualChild(0);
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
261Visual visual = hitTestResult.VisualHit as Visual;
MS\Internal\Controls\TemplatedAdorner.cs (1)
113protected override Visual GetVisualChild(int index)
MS\Internal\Data\ObjectRef.cs (9)
517Visual v = d as Visual; 529Visual v2 = layout as Visual; 532Visual prevChild = null; //child at j-1th index 591private int IndexOf(Visual parent, Visual child, out Visual prevChild) 593Visual temp;
MS\Internal\Documents\ContentHostHelper.cs (2)
147private static void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 167Visual child = root.InternalGetVisualChild(i);
MS\Internal\Documents\DocumentGrid.cs (9)
265public Rect MakeVisible(Visual v, Rect r) 288MakeVisibleAsync(new MakeVisibleData(o as Visual, cp, r), pageNumber); 1005protected override Visual GetVisualChild(int index) 1504Visual current = (Visual)visiblePages[i]; 1811if (((Visual)this).IsAncestorOf(data.Visual)) 3364public MakeVisibleData(Visual visual, ContentPosition contentPosition, Rect rect) 3374public Visual Visual 3395private Visual _visual;
MS\Internal\Documents\DocumentGridPage.cs (1)
181protected override Visual GetVisualChild(int index)
MS\Internal\Documents\DocumentPageHost.cs (7)
46internal static void DisconnectPageVisual(Visual pageVisual) 52Visual currentParent = VisualTreeHelper.GetParent(pageVisual) as Visual; 78internal Visual PageVisual 122protected override Visual GetVisualChild(int index) 128return VisualTreeHelper.GetParent(_pageVisual) as Visual; 147private Visual _pageVisual;
MS\Internal\Documents\DocumentViewerHelper.cs (5)
343if (focusedElement != null && focusedElement is Visual && 454internal static Rect CalculateVisibleRect(Rect visibleRect, Visual originalVisual) 456Visual visual = VisualTreeHelper.GetParent(originalVisual) as Visual; 476visual = VisualTreeHelper.GetParent(visual) as Visual;
MS\Internal\Documents\FlowDocumentView.cs (2)
227protected override Visual GetVisualChild(int index) 584Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle)
MS\Internal\Documents\MultiPageTextView.cs (4)
1248private Transform GetTransformToAncestor(Visual innerScope) 1262private Rect TransformToAncestor(Visual innerScope, Rect rect) 1279private Point TransformToAncestor(Visual innerScope, Point point) 1293private Point TransformToDescendant(Visual innerScope, Point point)
MS\Internal\Documents\ScrollData.cs (1)
172internal Rect MakeVisible(UIElement owner, Visual visual, Rect rectangle)
MS\Internal\Documents\TextBoxView.cs (2)
230Rect IScrollInfo.MakeVisible(Visual visual, Rect rectangle) 552protected override Visual GetVisualChild(int index)
MS\Internal\Documents\TextContainerHelper.cs (3)
361iterate((Visual)element, peers); 734private static void iterate(Visual parent, List<AutomationPeer> peers) 740Visual child = parent.InternalGetVisualChild(i);
MS\Internal\Documents\TextDocumentView.cs (2)
557Visual visual = _owner.Visual; 560visual = VisualTreeHelper.GetParent(visual) as Visual;
MS\Internal\Documents\UIElementIsland.cs (2)
41Visual currentParent = VisualTreeHelper.GetParent(_child) as Visual;
MS\Internal\FrameworkObject.cs (6)
308Visual visual; 312if ((visual = fo.DO as Visual) != null) 415Visual visual; 419if ((visual = _do as Visual) != null) 876Visual visual = _do as Visual;
MS\Internal\Helper.cs (2)
453Visual v = d as Visual;
MS\Internal\Ink\LassoHelper.cs (1)
60public Visual Visual
MS\Internal\Ink\PenCursorManager.cs (1)
285private static RenderTargetBitmap RenderVisualToBitmap(Visual visual, int width, int height)
MS\Internal\LayoutDump.cs (35)
45internal static string DumpLayoutAndVisualTreeToString(string tagName, Visual root) 68internal static void DumpLayoutAndVisualTree(XmlTextWriter writer, string tagName, Visual root) 200internal static void DumpVisual(XmlTextWriter writer, Visual visual, Visual parent) 243private static void DumpUIElement(XmlTextWriter writer, UIElement element, Visual parent, bool uiElementsOnly) 297internal static void DumpDocumentPage(XmlTextWriter writer, DocumentPage page, Visual parent) 335private static void DumpVisualChildren(XmlTextWriter writer, string tagName, Visual visualParent) 356internal static void DumpUIElementChildren(XmlTextWriter writer, string tagName, Visual visualParent) 420internal static void GetUIElementsFromVisual(Visual visual, List<UIElement> uiElements) 426Visual child = visual.InternalGetVisualChild(i); 646private static void DumpLineResults(XmlTextWriter writer, ReadOnlyCollection<LineResult> lines, Visual visualParent) 687private static void DumpParagraphResults(XmlTextWriter writer, string tagName, ReadOnlyCollection<ParagraphResult> paragraphs, Visual visualParent) 735private static void DumpTextParagraphResult(XmlTextWriter writer, TextParagraphResult paragraph, Visual visualParent) 744Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 757private static void DumpContainerParagraphResult(XmlTextWriter writer, ContainerParagraphResult paragraph, Visual visualParent) 766Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 775private static void DumpFloaterParagraphResult(XmlTextWriter writer, FloaterParagraphResult paragraph, Visual visualParent) 784Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 793private static void DumpUIElementParagraphResult(XmlTextWriter writer, UIElementParagraphResult paragraph, Visual visualParent) 802Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 810private static void DumpFigureParagraphResult(XmlTextWriter writer, FigureParagraphResult paragraph, Visual visualParent) 819Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 828private static void DumpTableParagraphResult(XmlTextWriter writer, TableParagraphResult paragraph, Visual visualParent) 833Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 840Visual rowVisual = visual.InternalGetVisualChild(i); 846Visual cellVisual = rowVisual.InternalGetVisualChild(j); 857private static void DumpSubpageParagraphResult(XmlTextWriter writer, SubpageParagraphResult paragraph, Visual visualParent) 866Visual visual = DumpParagraphOffset(writer, paragraph, visualParent); 875private static void DumpColumnResults(XmlTextWriter writer, ReadOnlyCollection<ColumnResult> columns, Visual visualParent) 901private static Visual DumpParagraphOffset(XmlTextWriter writer, ParagraphResult paragraph, Visual visualParent) 908Visual visual = (Visual)prop.GetValue(paraClient, null); 946private static void DumpTableCell(XmlTextWriter writer, ParagraphResult paragraph, Visual cellVisual, Visual tableVisual)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
96public override Visual Visual
MS\Internal\PtsHost\Line.cs (2)
425Visual currentParent = VisualTreeHelper.GetParent(inlineObject.UIElementIsland) as Visual;
MS\Internal\PtsHost\PageVisual.cs (1)
67internal Visual Child
MS\Internal\PtsHost\PtsHelper.cs (3)
87Visual paraVisual = floatingElementList[index].Visual; 273Visual currentParent = VisualTreeHelper.GetParent(paraClient.Visual) as Visual;
MS\Internal\PtsHost\TableParaClient.cs (3)
1506Visual visual) 1581Visual currentParent = VisualTreeHelper.GetParent(cellParaClient.Visual) as Visual;
MS\Internal\PtsHost\TextParaClient.cs (1)
2302Visual temp = Visual;
MS\Internal\PtsHost\UIElementParaClient.cs (2)
118Visual currentParent = VisualTreeHelper.GetParent(uiElementIsland) as Visual;
MS\Internal\Text\ComplexLine.cs (2)
172Visual currentParent = VisualTreeHelper.GetParent(inlineObject.Element) as Visual;
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SafeSecurityHelperAvalon.cs (1)
46internal static bool IsConnectedToPresentationSource( Visual visual )
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
436public AnnotatedDocumentPage(DocumentPage basePage, Visual visual, Size pageSize, Rect bleedBox, Rect contentBox)
System\Windows\Automation\Peers\DocumentAutomationPeer.cs (2)
246Visual visual = textView.RenderScope; 266visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (3)
300internal static Visual FindVisualByType(Visual parent, Type type) 307Visual visual = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (3)
148private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent, bool includeInvisibleItems) 170private static bool iterate(Visual parent, bool includeInvisibleItems, IteratorCallback callback) 179Visual child = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (3)
93private List<AutomationPeer> GetChildrenAutomationPeer(Visual parent) 115private static bool iterate(Visual parent, IteratorCallback callback) 124Visual child = parent.InternalGetVisualChild(i);
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (2)
177Visual visual = textView.RenderScope; 200visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\BroadcastEventHelper.cs (6)
470Visual visual; 477else if ((visual = d as Visual) != null) 588Visual v = (Visual)fo.FE; 694Visual v; 700if ((v = d as Visual) != null)
System\Windows\Controls\AccessText.cs (1)
532protected override Visual GetVisualChild(int index)
System\Windows\Controls\AdornedElementPlaceholder.cs (1)
146protected override Visual GetVisualChild(int index)
System\Windows\Controls\ComboBox.cs (5)
1606Visual visual; 1614else if ((visual = d as Visual) != null) 1745Visual originalSource = e.OriginalSource as Visual; 1746Visual textBox = comboBox.EditableTextBoxSite;
System\Windows\Controls\ContentPresenter.cs (1)
1049Visual result = DefaultExpansion(cp.Content, cp);
System\Windows\Controls\DataGridHelper.cs (1)
572if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
System\Windows\Controls\Decorator.cs (1)
174protected override Visual GetVisualChild(int index)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1161targetRect = MakeVisible((IScrollInfo)RenderScope, (Visual)ich, rects[0]); 1599private static Rect MakeVisible(IScrollInfo scrollInfo, Visual visual, Rect rectangle)
System\Windows\Controls\Frame.cs (2)
762Visual v = TemplateChild; 773Visual INavigatorImpl.FindRootViewer()
System\Windows\Controls\Grid.cs (4)
321protected override Visual GetVisualChild(int index) 736/// <see cref="Visual.OnVisualChildrenChanged"/> 2985Visual child = d as Visual;
System\Windows\Controls\GridSplitter.cs (1)
420protected override Visual GetVisualChild(int index)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (5)
923Visual headerAsVisual = d as Visual; 927Visual parent = VisualTreeHelper.GetParent(headerAsVisual) as Visual; 1232if (!(srcHeader.Content is Visual))
System\Windows\Controls\HeaderedContentControl.cs (1)
343if (!(item is Visual) && (HeaderIsItem || !HasNonDefaultValue(HeaderProperty)))
System\Windows\Controls\InkCanvas.cs (3)
377protected override Visual GetVisualChild(int index) 2231internal void BeginDynamicSelection(Visual visual) 2275internal StrokeCollection EndDynamicSelection(Visual visual)
System\Windows\Controls\InkPresenter.cs (5)
75public void AttachVisuals(Visual visual, DrawingAttributes drawingAttributes) 87public void DetachVisuals(Visual visual) 249protected override Visual GetVisualChild(int index) 338internal bool ContainsAttachedVisual(Visual visual) 348internal bool AttachedVisualIsPositionedCorrectly(Visual visual, DrawingAttributes drawingAttributes)
System\Windows\Controls\ItemsControl.cs (6)
1337Visual visual = container as Visual; 1340Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 3104Visual parent = VisualTreeHelper.GetParent(element) as Visual;
System\Windows\Controls\ItemsPresenter.cs (2)
181Visual parent = VisualTreeHelper.GetParent(groupItem) as Visual;
System\Windows\Controls\ListBox.cs (2)
596Visual visualOldFocus = oldFocus as Visual;
System\Windows\Controls\Page.cs (2)
653Visual visualParent = VisualTreeHelper.GetParent(this) as Visual;
System\Windows\Controls\Panel.cs (2)
379protected override Visual GetVisualChild(int index) 865/// <see cref="Visual.OnVisualChildrenChanged"/>
System\Windows\Controls\PopupControlService.cs (7)
698DependencyObject v = o as Visual; 713((v is Visual && ((Visual)v).IsDescendantOf(_currentToolTip)) || 876Visual visualParent = ichParent as Visual; 1080DependencyObject v = o as Visual; 1119nearestVisual = o as Visual;
System\Windows\Controls\Primitives\BulletDecorator.cs (3)
220protected override Visual GetVisualChild(int index) 382private TextBlock FindText(Visual root) 424private FlowDocumentScrollViewer FindFlowDocumentScrollViewer(Visual root)
System\Windows\Controls\Primitives\ButtonBase.cs (2)
95Visual focusScope = FocusManager.GetFocusScope(this) as Visual;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
466protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\DocumentPageView.cs (6)
347Visual pageVisual; 469protected override Visual GetVisualChild(int index) 912Visual visualParent; 925visualParent = VisualTreeHelper.GetParent(this) as Visual; 933visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 1006private Visual _pageVisualClone;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
915private void FindDocumentPageViews(Visual root, List<DocumentPageView> pageViews) 929Visual child = root.InternalGetVisualChild(i); 962private AdornerDecorator FindAdornerDecorator(Visual root) 978Visual child = root.InternalGetVisualChild(i);
System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
126protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\IScrollInfo.cs (1)
119Rect MakeVisible(Visual visual, Rect rectangle);
System\Windows\Controls\Primitives\MenuBase.cs (1)
817if (!IsDescendant(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (24)
1417private static Visual GetRootVisual(Visual child) 1427return root as Visual; 1431private Visual GetTarget() 1433Visual targetVisual = PlacementTarget; 1481Visual targetVisual = GetTarget(); 1581private void BuildWindow(Visual targetVisual) 1821Visual rootVisual = parent == null ? null : GetRootVisual(this); 2350Visual rootVisual = GetRootVisual(target); 2431private static GeneralTransform TransformToClient(Visual visual, Visual rootVisual) 2986internal Point ClientToScreen(Visual rootVisual, Point clientPoint) 3025internal NativeMethods.POINT GetMouseCursorPos(Visual targetVisual) 3044Visual rootVisual = hwndSource.RootVisual; 3123internal static Matrix GetTransformToDevice(Visual targetVisual) 3154internal void SetWindowRootVisual(Visual v) 3159internal static bool IsVisualPresentationSourceNull(Visual visual) 3257private static Visual FindMainTreeVisual(Visual v) 3289return root as Visual; 3296internal void BuildWindow(int x, int y, Visual placementTarget, 3302Visual mainTreeVisual = placementTarget; 3424private static PresentationSource GetPresentationSource(Visual visual) 3540var rootVisual = Popup.GetRootVisual(target);
System\Windows\Controls\Primitives\PopupRoot.cs (1)
75protected override Visual GetVisualChild(int index)
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (6)
184public Rect MakeVisible(Visual visual, Rect rectangle) 347protected override Visual GetVisualChild(int index) 558internal Rect MakeVisible(Visual visual, Rect rectangle, bool throwOnError) 575|| visual == (Visual)this 738Visual child = Content as Visual;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1678Visual visual = this.RenderScope; 1685visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Controls\Primitives\Track.cs (3)
125_visualChildren = new Visual[3]; 376protected override Visual GetVisualChild(int index) 858private Visual[] _visualChildren;
System\Windows\Controls\PrintDialog.cs (1)
348Visual visual,
System\Windows\Controls\RadioButton.cs (1)
145Visual rootScope = KeyboardNavigation.GetVisualRoot(this);
System\Windows\Controls\ScrollViewer.cs (11)
192internal void MakeVisible(Visual child, Rect rect) 1027Visual baseRoot = KeyboardNavigation.GetVisualRoot(scp); 1028Visual elementRoot = KeyboardNavigation.GetVisualRoot(element); 2121internal MakeVisibleParams(Visual child, Rect targetRect) 2126internal Visual Child; 2237Visual child = cmd.MakeVisibleParam.Child; 2238Visual visi = isi as Visual; 2464Visual child = e.TargetObject as Visual; 2484child = contentHost as Visual;
System\Windows\Controls\Stack.cs (3)
238public Rect MakeVisible(Visual visual, Rect rectangle) 247|| visual == (Visual)this 851private int FindChildIndexThatParentsVisual(Visual child)
System\Windows\Controls\StickyNote.cs (2)
1240Visual source = args.OriginalSource as Visual;
System\Windows\Controls\TextAdaptor.cs (11)
242Visual visual = renderScope; 265visual = VisualTreeHelper.GetParent(visual) as Visual; 348Visual visual = VisualTreeHelper.GetParent(textView.RenderScope) as Visual; 369visual = VisualTreeHelper.GetParent(visual) as Visual; 378private Point ClientToScreen(Point point, Visual visual) 397/// A version of <see cref="ClientToScreen(Point, Visual)"/> for compatibility purposes. 401private Point ObsoleteClientToScreen(Point point, Visual visual) 419private Point ScreenToClient(Point point, Visual visual) 437/// A version of <see cref="ScreenToClient(Point, Visual)"/> for compatibility purposes. 441private Point ObsoleteScreenToClient(Point point, Visual visual)
System\Windows\Controls\TextBlock.cs (2)
1160protected override Visual GetVisualChild(int index) 1918internal void RemoveChild(Visual child)
System\Windows\Controls\ToolBarTray.cs (1)
480protected override Visual GetVisualChild(int index)
System\Windows\Controls\TreeView.cs (2)
813Visual v = o as Visual;
System\Windows\Controls\UIElementCollection.cs (6)
258Visual[] visuals = new Visual[cnt]; 354Visual[] visuals = new Visual[count]; 383internal void MoveVisualChild(Visual visual, Visual destination)
System\Windows\Controls\ViewBox.cs (1)
239protected override Visual GetVisualChild(int index)
System\Windows\Controls\ViewPort3D.cs (1)
182protected override Visual GetVisualChild(int index)
System\Windows\Controls\VirtualizingStackPanel.cs (4)
1482public Rect MakeVisible(Visual visual, Rect rectangle) 1495|| visual == (Visual)this 11034private double FindScrollOffset(Visual v) 11113ItemsControl.GetItemsOwnerInternal(VisualTreeHelper.GetParent((Visual)itemStorageProvider)) as IContainItemStorage;
System\Windows\DescendentsWalker.cs (3)
115if (d is Visual v) 132private void WalkVisualChildren( Visual v ) 319Visual child = feParent.InternalGetVisualChild(i);
System\Windows\Documents\AdornerDecorator.cs (2)
164Visual old = base.Child; 208protected override Visual GetVisualChild(int index)
System\Windows\Documents\AdornerHitTestResult.cs (1)
39 internal AdornerHitTestResult(Visual visual, Point pt, Adorner adorner) : base(visual, pt)
System\Windows\Documents\AdornerLayer.cs (16)
287Visual visual = result.VisualHit; 296visual = (Visual)VisualTreeHelper.GetParent(visual); 312static public AdornerLayer GetAdornerLayer(Visual visual) 316Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 325parent = VisualTreeHelper.GetParent(parent) as Visual; 385protected override Visual GetVisualChild(int index) 706Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 768Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 823private CombinedGeometry GetClipGeometry(Visual element, Adorner adorner) 825Visual oldElement = null; 828Visual adornerLayerParent = VisualTreeHelper.GetParent(this) as Visual; 864element = (Visual)VisualTreeHelper.GetParent(element);
System\windows\Documents\CaretElement.cs (1)
107protected override Visual GetVisualChild(int index)
System\Windows\Documents\CompositionAdorner.cs (2)
130Visual parent2d = VisualTreeHelper.GetParent(this.AdornedElement) as Visual;
System\Windows\Documents\DocumentSequence.cs (1)
1133public override Visual Visual
System\Windows\Documents\DocumentSequenceTextView.cs (2)
501Visual visual = _docPage.Visual; 505visual = VisualTreeHelper.GetParent(visual) as Visual;
System\Windows\Documents\FixedDocument.cs (1)
1412public override Visual Visual
System\Windows\Documents\FixedPage.cs (1)
710protected override Visual GetVisualChild(int index)
System\Windows\Documents\FixedPageStructure.cs (1)
594GeneralTransform transform = ((Visual)dependencyObject).TransformToAncestor(fp);
System\Windows\Documents\FixedTextView.cs (3)
688Visual visual = _docPage.Visual; 692visual = VisualTreeHelper.GetParent(visual) as Visual; 1238private Visual VisualRoot
System\Windows\Documents\FlowDocument.cs (1)
911parentOfEmbeddedElement = VisualTreeHelper.GetParent((Visual)element);
System\Windows\Documents\RubberbandSelector.cs (4)
199Visual v = GetVisual(-_selectionRect.Left, -_selectionRect.Top); 210private Visual GetVisual(double offsetX, double offsetY) 231private void CloneVisualTree(ContainerVisual parent, Visual old) 256Visual child = old.InternalGetVisualChild(i);
System\Windows\Documents\Serialization\SerializerWriter.cs (6)
28public abstract void Write(Visual visual); 33public abstract void Write(Visual visual, PrintTicket printTicket); 38public abstract void WriteAsync(Visual visual); 43public abstract void WriteAsync(Visual visual, object userState); 49public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 55public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
System\Windows\Documents\Serialization\SerializerWriterCollator.cs (6)
37public abstract void Write(Visual visual); 42public abstract void Write(Visual visual, PrintTicket printTicket); 47public abstract void WriteAsync(Visual visual); 52public abstract void WriteAsync(Visual visual, object userState); 57public abstract void WriteAsync(Visual visual, PrintTicket printTicket); 62public abstract void WriteAsync(Visual visual, PrintTicket printTicket, object userState);
System\windows\Documents\TextEditorContextMenu.cs (2)
286for (Visual visual = This.UiScope; visual != null; visual = VisualTreeHelper.GetParent(visual) as Visual)
System\windows\Documents\TextEditorDragDrop.cs (3)
422ITextPointer dragPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope)); 453private ITextPointer GetDropPosition(Visual target, Point point) 552ITextPointer dropPosition = GetDropPosition(_textEditor.TextView.RenderScope as Visual, e.GetPosition(_textEditor.TextView.RenderScope));
System\windows\Documents\TextEditorMouse.cs (6)
621Visual scrollViewer = VisualTreeHelper.GetParent(This.UiScope) as Visual; 624scrollViewer = VisualTreeHelper.GetParent(scrollViewer) as Visual; 782if(hitTestResult.VisualHit is Visual) check = ((Visual)hitTestResult.VisualHit).IsDescendantOf(renderScope); 808else if (hitElement is Visual)
System\Windows\Documents\TextPointerBase.cs (6)
886Visual templatedParent; 891templatedParent = ((FlowDocumentView)textView.RenderScope).TemplatedParent as Visual; 894templatedParent = ((FrameworkElement)((FlowDocumentView)textView.RenderScope).Parent).TemplatedParent as Visual; 897else if (thisPointer.TextContainer.Parent is Visual) 899Invariant.Assert(textView.RenderScope == thisPointer.TextContainer.Parent || ((Visual)thisPointer.TextContainer.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope), 901templatedParent = (Visual)thisPointer.TextContainer.Parent;
System\windows\Documents\TextSelection.cs (2)
2584if (parent == null && element is Visual) 2590else if (element is Visual)
System\Windows\Documents\TextStore.cs (4)
862UiScope as Visual, 2774private void PrepareAttributes(InputScope inputScope, double fontSize, FontFamily fontFamily, XmlLanguage language, Visual visual, int count, Guid[] filterAttributes) 2853source = PresentationSource.CriticalFromVisual((Visual)RenderScope); 2856Visual root = source.RootVisual;
System\Windows\FrameworkElement.cs (14)
651protected override Visual GetVisualChild(int index) 2225for (Visual v = VisualTreeHelper.GetParent(this) as Visual; 2227v = VisualTreeHelper.GetParent(v) as Visual) 2486Visual newParentAsVisual = newParent as Visual; 2493((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2500Visual oldParentAsVisual = oldParent as Visual; 2507((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2950Visual visualParentAsVisual = visualParent as Visual; 3138Visual visualParentAsVisual = visualParent as Visual;
System\Windows\Input\KeyboardNavigation.cs (40)
155internal static Visual GetVisualRoot(DependencyObject d) 157if (d is Visual || d is Visual3D) 523Debug.Assert(contentHostParent is Visual, "contentHostParent should be Visual"); 581if (!(contentHost is Visual) || !AdornedElement.IsAncestorOf((Visual)contentHost)) 663protected override Visual GetVisualChild(int index) 680if (_adornedContentElement != null && (_contentHostParent==null || VisualTreeHelper.GetParent(_contentHostParent as Visual) == null)) 710if (contentHost is Visual && AdornedElement.IsAncestorOf((Visual)contentHost)) 712_hostToAdornedElement = ((Visual)contentHost).TransformToAncestor(AdornedElement); 789Visual visualParent = parent as Visual; 792visualParent = VisualTreeHelper.GetParent(visualParent) as Visual; 926Visual visualRoot = GetVisualRoot(focusTarget); 1042Visual visualRoot = GetVisualRoot(currentElement); 1098Visual visual = currentElement as Visual; 1250Visual visual = element as Visual; 1258Visual rootVisual = GetVisualRoot(visual); 1490DependencyObject elementAsVisual = e as Visual; 1551DependencyObject elementAsVisual = e as Visual; 1597Visual visualFocusedElement = focusedElement as Visual; 1664DependencyObject elementAsVisual = e as Visual; 1729DependencyObject elementAsVisual = e as Visual; 1759if (e is Visual || e is Visual3D) 2383Visual rootVisual = GetVisualRoot(uiElement); 2413Visual parent = parentICH as Visual; 2416Visual rootVisual = GetVisualRoot(parent); 2443Visual rootVisual = GetVisualRoot(uiElement3D); 2444Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(uiElement3D); 2632Visual sourceVisual = sourceElement as Visual; 2633Visual targetVisual = targetElement as Visual; 3285Visual eventSourceVisual = eventSource as Visual; 3407Visual root = source.RootVisual;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
829case 733: t = () => typeof(Visual); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11209typeof(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)
445if (_navigatorHostImpl != null && !(_bp is Visual)) 447Visual v = _navigatorHostImpl.FindRootViewer(); 459Debug.Assert(!(_bp is Visual)); 460Visual v = _navigatorHostImpl.FindRootViewer(); 1082internal void VisualTreeAvailable(Visual v) 4132private Visual _oldRootVisual;
System\Windows\Navigation\NavigationWindow.cs (1)
940Visual INavigatorImpl.FindRootViewer()
System\Windows\StyleHelper.cs (1)
5603return (value is Visual) || (value is ContentElement);
System\Windows\Window.cs (3)
2127/// <param name="visualAdded">The <see cref="Visual"/> that was added to the collection</param> 2128/// <param name="visualRemoved">The <see cref="Visual"/> that was removed from the collection</param> 7517internal Visual RootVisual
ReachFramework (113)
AlphaFlattener\BrushProxy.cs (1)
3018Visual visual = bcb.Target;
AlphaFlattener\Flattener.cs (1)
466static void SerializeVisual(Visual visual, double width, double height, String filename)
AlphaFlattener\Interfaces.cs (1)
60Visual node,
AlphaFlattener\MetroDevice.cs (1)
718Visual node,
AlphaFlattener\Utility.cs (4)
1786public static Transform GetVisualTransform(Visual visual) 1903Visual visual, 1940private static Visual CreateVisualFromDrawing(Drawing drawing) 1987Visual visual,
Serialization\DrawingContextFlattener.cs (3)
87Visual node, 359Visual visual, 930Visual node,
Serialization\Manager\NGCSerializationManager.cs (5)
271else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 601Visual visual 673if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 685(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ) 707(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) )
Serialization\Manager\NGCSerializationManagerAsync.cs (5)
508else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 840Visual visual 943if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 955(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ) 1005(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) )
Serialization\Manager\NGCSerializer.cs (9)
177Visual visual = (Visual)serializedObject as Visual; 244Visual visual = (Visual)serializedObject as Visual; 326Visual pageRootVisual = dp.Visual; 965Visual visual = uiElement as Visual;
Serialization\Manager\NGCSerializerAsync.cs (9)
831Visual visual = (Visual)serializableObjectContext.TargetObject as Visual; 932Visual pageRootVisual = dp.Visual; 1032Visual visual = serializedObject as Visual; 1051Visual visual = (Visual)serializableObjectContext.TargetObject as Visual;
Serialization\Manager\NGCUIElementCollectionSerializerAsync.cs (2)
213Visual visual = uiElement as Visual;
Serialization\Manager\ReachDocumentPageSerializer.cs (1)
199private void SerializeChild(Visual child, SerializableObjectContext parentContext)
Serialization\Manager\ReachDocumentPageSerializerAsync.cs (1)
238private void SerializeChild(Visual child, SerializableObjectContext parentContext)
Serialization\Manager\ReachFixedPageSerializer.cs (3)
194Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 397Visual fixedPageAsVisual
Serialization\Manager\ReachFixedPageSerializerAsync.cs (3)
219Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 369Visual fixedPageAsVisual
Serialization\Manager\ReachSerializationUtils.cs (12)
348else if(typeof(System.Windows.Media.Visual).IsAssignableFrom(_serializedObject.GetType())) 377else if(typeof(System.Windows.Media.Visual).IsAssignableFrom(_serializedObject.GetType())) 579Visual visual = _serializedObject as Visual; 694Visual visual, 783Visual root = page.Visual; 822internal void SerializeLinksInVisual(Visual visual) 846private void SerializeLinksForIContentHost(IContentHost contentHost, Visual root) 870private void SerializeLinksInLogicalTree(DependencyObject dependencyObject, IContentHost contentHost, Visual root) 895private void SerializeLinkTargetForElement(IInputElement element, IContentHost contentHost, Visual root) 921Visual contentVisual = contentHost as Visual;
Serialization\Manager\ReachUIElementCollectionSerializer.cs (2)
150Visual visual = uiElement as Visual;
Serialization\Manager\ReachUIElementCollectionSerializerAsync.cs (2)
214Visual visual = uiElement as Visual;
Serialization\Manager\ReachVisualSerializer.cs (14)
53Visual v = serializedObject as Visual; 57throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 95Visual visual, 120Visual v = ctx.GetNextChild(); 189Visual v = serializedObject as Visual; 193throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 228public NodeContext(Visual v) 238public Visual NodeVisual 250public Visual GetNextChild() 252Visual child = null; 258child = (Visual) VisualTreeHelper.GetChild(nodeVisual, index); 269private Visual nodeVisual;
Serialization\Manager\ReachVisualSerializerAsync.cs (8)
85Visual v = serializedObject as Visual; 89throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual))); 123Visual visual, 170Visual v = ctx.GetNextChild(); 238Visual v = serializedObject as Visual; 242throw new ArgumentException(SR.Format(SR.MustBeOfType, "serializedObject", typeof(Visual)));
Serialization\Manager\XpsOMDocumentPageSerializer.cs (1)
222Visual child,
Serialization\Manager\XpsOMFixedPageSerializer.cs (3)
184Visual fixedPageAsVisual = serializableObjectContext.TargetObject as Visual; 355Visual fixedPageAsVisual
Serialization\Manager\XpsOMSerializationManager.cs (1)
195else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\Manager\XpsOMSerializationManagerAsync.cs (1)
357else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\Manager\XpsSerializationManager.cs (5)
357else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType)) 462else if (writerType == typeof(Visual)) 573else if (writerType == typeof(Visual)) 1079if((typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) && 1090(typeof(System.Windows.Media.Visual).IsAssignableFrom(serializedObjectType)) ||
Serialization\Manager\XpsSerializationManagerAsync.cs (1)
452else if (typeof(System.Windows.Media.Visual).IsAssignableFrom(objectType))
Serialization\VisualSerializer.cs (2)
876protected Visual _node; 2349Visual node,
Serialization\VisualTreeFlattener.cs (5)
435internal bool StartVisual(Visual visual) 648internal void VisualWalk(Visual visual) 657VisualWalk((Visual) VisualTreeHelper.GetChild(visual,i)); 770static internal void SaveAsXml(Visual visual, System.Xml.XmlWriter resWriter, System.Xml.XmlWriter bodyWriter, String fileName) 834static internal void Walk(Visual visual, IMetroDrawingContext dc, Size pageSize, TreeWalkProgress treeWalkProgress)
Serialization\XpsFontSerializationService.cs (1)
54else if(type == typeof(Visual))
SerializerFactory\XpsSerializerWriter.cs (6)
59public override void Write(Visual visual) 71public override void Write(Visual visual, PrintTicket printTicket) 83public override void WriteAsync(Visual visual) 93public override void WriteAsync(Visual visual, PrintTicket printTicket) 103public override void WriteAsync(Visual visual, object userState) 113public override void WriteAsync(Visual visual, PrintTicket printTicket, object userState)
System.Windows.Controls.Ribbon (20)
Microsoft\Windows\Controls\KeyTipAdorner.cs (1)
52protected override Visual GetVisualChild(int index)
Microsoft\Windows\Controls\KeyTipService.cs (6)
804PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1263PresentationSource targetSource = RibbonHelper.GetPresentationSourceFromVisual(_currentGlobalScope as Visual); 1307static private AdornerLayer GetAdornerLayer(Visual visual, out bool isScrollAdornerLayer) 1312Visual parent = VisualTreeHelper.GetParent(visual) as Visual; 1340parent = VisualTreeHelper.GetParent(parent) as Visual;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGalleryCategoriesPanel.cs (2)
805public Rect MakeVisible(Visual visual, Rect rectangle) 811|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (2)
892public Rect MakeVisible(Visual visual, Rect rectangle) 898|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabsPanel.cs (2)
130public Rect MakeVisible(Visual visual, Rect rectangle) 136|| visual == (Visual)this
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (5)
847Visual visual; 855else if ((visual = d as Visual) != null) 1258Visual originalSource = e.OriginalSource as Visual; 1259Visual textBox = EditableTextBoxSite;
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2522public static PresentationSource GetPresentationSourceFromVisual(Visual visual) 2923internal static Matrix GetTransformToDevice(Visual targetVisual)
WindowsFormsIntegration (15)
System\Windows\Integration\ApplicationInterop.cs (2)
418private static SWM.Visual FindRootVisual(SWM.Visual x)
System\Windows\Integration\HostUtils.cs (13)
88internal static Visual GetRootVisual(Visual descendant) 91Visual root = descendant; 96Visual visual = current as Visual; 106internal static Point TransformToRootPoint(Visual element, Point pointElement) 108Visual rootVisual = GetRootVisual(element); 112internal static Point TransformToParentPoint(Visual element, Visual ancestor, Point pointElement) 313internal static RenderTargetBitmap GetRenderTargetBitmapForVisual(int width, int height, Visual visualToRender) 346internal static Vector GetScale(Visual visual) 352internal static Vector GetScale(Visual visual, out bool skewed) 365internal static bool IsRotated(Visual visual)