3 types derived from Visual3D
PresentationCore (3)
System\Windows\Media3D\ModelVisual3D.cs (1)
31public class ModelVisual3D : Visual3D, IAddChild
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
34public sealed class Viewport2DVisual3D : Visual3D
System\Windows\UIElement3D.cs (1)
41public abstract partial class UIElement3D : Visual3D, IInputElement
222 references to Visual3D
PresentationCore (178)
MS\Internal\DeferredElementTreeState.cs (2)
47Visual3D v3D = element as Visual3D;
MS\Internal\IVisual3DContainer.cs (3)
32void AddChild(Visual3D child); 38void RemoveChild(Visual3D child); 49Visual3D GetChild(int index);
MS\Internal\Media\VisualTreeUtils.cs (15)
64Visual3D visual3D; 74Visual3D.PropagateFlags(visual3D, flags, proxyFlags); 86Visual3D visual3D; 107Visual3D visual3D; 149Visual3D current = (Visual3D) resultAsRayHitTestResult.VisualHit; 159Visual3D parent3D = current.InternalVisualParent as Visual3D; 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) 331Visual3D elementAsVisual3D = element as Visual3D;
MS\Internal\Media3D\M3DUtil.cs (6)
508internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual) 521internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual3DStart, out Viewport3DVisual viewport) 528Visual3D visual3D = dependencyObject as Visual3D; 536Transform3D transform = (Transform3D)visual3D.GetValue(Visual3D.TransformProperty); 562internal static bool TryTransformToViewport3DVisual(Visual3D visual3D, out Viewport3DVisual viewport, out Matrix3D matrix)
MS\Internal\SynchronizedInputHelper.cs (1)
131if(o is Visual || o is Visual3D)
MS\Internal\UIElementHelper.cs (1)
106myParent = ((Visual3D)child).InternalVisualParent;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
172Visual3D asVisual3D = child as Visual3D;
System\Windows\Input\FocusManager.cs (1)
385if (d is Visual || d is Visual3D)
System\Windows\Input\InputElement.cs (5)
71else if (!onlyTraverse2D && o is Visual3D v3D) 119else if (!onlyTraverse2D && o is Visual3D v3D) 150else if (o is Visual3D visual3D) 176v = o as Visual3D; 200rootVisual is Visual && parentVisual is Visual3D)
System\Windows\Input\TouchDevice.cs (1)
1213if (currentChild is Visual || currentChild is Visual3D)
System\Windows\Media\BitmapCacheBrush.cs (2)
217|| (VisualTreeHelper.GetParent(element) is Visual3D) // element is a 2D child of a 3D object, OR 273&& (parent == null || parent is Visual3D || parent == InternalTarget))
System\Windows\Media\Visual.cs (20)
4097if (e is Visual3D) 4099Visual3D.ProcessAncestorChangedNotificationRecursive(e, args); 4141Visual3D visual3D; 4177Visual3D currentAsVisual3D = current as Visual3D; 4214((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4248Visual3D parentAsVisual3D = parent as Visual3D; 4340public GeneralTransform2DTo3D TransformToAncestor(Visual3D ancestor) 4655private GeneralTransform2DTo3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 4676internal bool TrySimpleTransformToAncestor(Visual3D ancestor, 5076Visual3D eAsVisual3D; 5087((Visual3D)e).SetFlags(true, nodeFlag); 5104eAsVisual3D = e as Visual3D; 5131Visual3D eAsVisual3D; 5144((Visual3D)e).SetFlags(false, nodeFlag); 5167eAsVisual3D = e as Visual3D; 5174if(Visual3D.DoAnyChildrenHaveABitSet(eAsVisual3D, treeFlag)) 5268Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualBrush.cs (2)
200|| (VisualTreeHelper.GetParent(element) is Visual3D))) 241&& (parent == null || parent is Visual3D))
System\Windows\Media\VisualTreeHelper.cs (14)
51return (reference is Visual) || (reference is Visual3D); 60Visual3D visual3D; 83Visual3D visual3D; 132Visual3D visual3D; 155Visual3D visual3D; 196internal static Visual3D GetContainingVisual3D(DependencyObject reference) 198Visual3D visual3D = null; 202visual3D = reference as Visual3D; 215Visual3D visual3D; 248else if (current is Visual3D visual3D) 264Visual3D visual3D; 361public static Rect3D GetContentBounds(Visual3D reference) 381public static Rect3D GetDescendantBounds(Visual3D reference) 470Visual3D reference,
System\Windows\Media3D\ContainerUIElement3D.cs (1)
60protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\HitTestParameters3D.cs (1)
202internal Visual3D CurrentVisual;
System\Windows\Media3D\ModelVisual3D.cs (5)
68protected sealed override Visual3D GetVisual3DChild(int index) 92Visual3D visual3D = value as Visual3D; 96throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name)); 168public static new readonly DependencyProperty TransformProperty = Visual3D.TransformProperty;
System\Windows\Media3D\Ray3DHitTestResult.cs (3)
35internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) 51public new Visual3D VisualHit 53get { return (Visual3D) base.VisualHit; }
System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (1)
35Visual3D visualHit,
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
845protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\Viewport3DVisual.cs (10)
328void IVisual3DContainer.AddChild(Visual3D child) 360Visual3D.PropagateFlags( 377void IVisual3DContainer.RemoveChild(Visual3D child) 452Visual3D IVisual3DContainer.GetChild(int index) 454return (Visual3D)InternalGet2DOr3DVisualChild(index); 500HitTestResultBehavior result = Visual3D.HitTestChildren(filterCallback, rayParams, this); 615Visual3D child = _children.InternalGetItem(i); 704Visual3D child = _children.InternalGetItem(i); 783Visual3D child = _children.InternalGetItem((int) i); 834Visual3D visual = _children.InternalGetItem(i);
System\Windows\Media3D\Visual3D.cs (36)
155/* ownerType = */ typeof(Visual3D), 161Visual3D owner = ((Visual3D) d); 233protected void AddVisual3DChild(Visual3D child) 255Visual3D.PropagateFlags( 260Visual3D.PropagateFlags( 284protected void RemoveVisual3DChild(Visual3D child) 301child.SetParent(/* newParent = */ (Visual3D) null); // CS0121: Call is ambigious without casting null to Visual3D. 328Visual3D.PropagateFlags( 568Visual3D eAsVisual3D = e as Visual3D; 591Visual3D.ProcessAncestorChangedNotificationRecursive(child, args); 737Visual3D child = container.GetChild(i); 961internal void SetParent(Visual3D newParent) 996protected virtual Visual3D GetVisual3DChild(int index) 1005void IVisual3DContainer.AddChild(Visual3D child) 1014void IVisual3DContainer.RemoveChild(Visual3D child) 1031Visual3D IVisual3DContainer.GetChild(int index) 1129Visual3D child = GetVisual3DChild(i); 1225Visual3D child = GetVisual3DChild(i); 1304Visual3D visual3D; 1328Visual3D current = this; 1357Visual3D current = this; 1380Visual3D current = this; 1485Visual3D child = GetVisual3DChild(i); 1620public GeneralTransform3D TransformToAncestor(Visual3D ancestor) 1641public GeneralTransform3D TransformToDescendant(Visual3D descendant) 1656private GeneralTransform3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 1664Visual3D lastVisual3D = null; 1683Visual3D gAsVisual3D = g as Visual3D; 1710Visual3D containing3DParent = VisualTreeHelper.GetContainingVisual3D(gAsVisual); 2014internal static bool DoAnyChildrenHaveABitSet(Visual3D pe, 2023Visual3D v3D = null; 2046Visual3D e, 2157private Visual3D _3DParent;
System\Windows\Media3D\Visual3DCollection.cs (33)
28public sealed class Visual3DCollection : IList, IList<Visual3D> 56public void Add(Visual3D value) 70private void ConnectChild(int index, Visual3D value) 79public void Insert(int index, Visual3D value) 89public bool Remove(Visual3D value) 126FrugalStructList<Visual3D> oldCollection = _collection; 127_collection = new FrugalStructList<Visual3D>(); 142public void CopyTo(Visual3D[] array, int index) 195public bool Contains(Visual3D value) 205public int IndexOf(Visual3D value) 234IEnumerator<Visual3D> IEnumerable<Visual3D>.GetEnumerator() 252public Visual3D this[int index] 306bool ICollection<Visual3D>.IsReadOnly 332return Contains(value as Visual3D); 340return IndexOf(value as Visual3D); 370Remove(value as Visual3D); 406internal Visual3D InternalGetItem(int index) 442private void VerifyAPIReadOnly(Visual3D other) 454private void VerifyAPIReadWrite(Visual3D other) 460private Visual3D Cast(object value) 464if (!(value is Visual3D)) 469return (Visual3D) value; 472private void VerifyAPIForAdd(Visual3D value) 487private void InternalInsert(int index, Visual3D value) 512Visual3D value = _collection[index]; 556Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>(); 560Visual3D visual = _collection[i]; 594private FrugalStructList<Visual3D> _collection = new FrugalStructList<Visual3D>(); 610public struct Enumerator : IEnumerator<Visual3D>, IEnumerator 680public Visual3D Current
System\Windows\UIElement.cs (6)
1463Visual3D parentAsVisual3D = parent as Visual3D; 1503else if (oldParent is Visual3D) 1505((Visual3D) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4280Visual3D v3DChild = child as Visual3D;
System\Windows\UIElement3D.cs (6)
165Visual3D parentAsVisual3D = parent as Visual3D; 205else if (oldParent is Visual3D) 207((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1372internal static void InvalidateForceInheritPropertyOnChildren(Visual3D v, DependencyProperty property) 1422((Visual3D)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (44)
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
262System.Windows.Media.Media3D.Visual3D visual3D = hitTestResult.VisualHit as System.Windows.Media.Media3D.Visual3D;
MS\Internal\FrameworkObject.cs (4)
309Visual3D visual3D; 320else if ((visual3D = fo.DO as Visual3D) != null) 416Visual3D visual3D; 427else if ((visual3D = _do as Visual3D) != null)
System\Windows\BroadcastEventHelper.cs (4)
471Visual3D visual3D; 482else if ((visual3D = d as Visual3D) != null) 695Visual3D v3D; 708else if ((v3D = d as Visual3D) != null)
System\Windows\Controls\DataGridHelper.cs (1)
572if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
System\Windows\Controls\PopupControlService.cs (5)
708v = o as Visual3D; 714(v is Visual3D && ((Visual3D)v).IsDescendantOf(_currentToolTip))); 1083v = o as Visual3D; 1125nearestVisual = o as Visual3D;
System\Windows\Controls\ViewPort3D.cs (3)
233Visual3D visual3D = value as Visual3D; 237throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), "value");
System\Windows\DescendentsWalker.cs (2)
119else if (d is Visual3D v3D) 159private void WalkVisualChildren( Visual3D v )
System\windows\Documents\TextEditorMouse.cs (2)
783if(hitTestResult.VisualHit is Visual3D) check = ((Visual3D)hitTestResult.VisualHit).IsDescendantOf(renderScope);
System\Windows\FrameworkElement.cs (6)
2491else if (newParent is Visual3D) 2493((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2505else if (oldParent is Visual3D) 2507((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2960if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot)) 3148if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
System\Windows\FrameworkElementFactory.cs (3)
96!typeof(Visual3D).IsAssignableFrom(value)) 680Visual3D treeNodeVisual3D = null; 687treeNodeVisual3D = treeNode as Visual3D;
System\Windows\Input\KeyboardNavigation.cs (8)
157if (d is Visual || d is Visual3D) 1493elementAsVisual = e as Visual3D; 1554elementAsVisual = e as Visual3D; 1600Visual3D visual3DFocusedElement = focusedElement as Visual3D; 1667elementAsVisual = e as Visual3D; 1732elementAsVisual = e as Visual3D; 1759if (e is Visual || e is Visual3D)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
830case 734: t = () => typeof(Visual3D); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11220typeof(System.Windows.Media.Media3D.Visual3D),
System\Windows\Markup\KnownTypes.cs (1)
6288case KnownElements.Visual3D: t = typeof(System.Windows.Media.Media3D.Visual3D); break;
System\Windows\StyleHelper.cs (1)
2346else if (throwIfNeither && !(d is System.Windows.Media.Media3D.Visual3D) )