3 types derived from Visual3D
PresentationCore (3)
System\Windows\Media3D\ModelVisual3D.cs (1)
15public class ModelVisual3D : Visual3D, IAddChild
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
17public sealed class Viewport2DVisual3D : Visual3D
System\Windows\UIElement3D.cs (1)
26public abstract partial class UIElement3D : Visual3D, IInputElement
222 references to Visual3D
PresentationCore (178)
MS\Internal\DeferredElementTreeState.cs (2)
46Visual3D v3D = element as Visual3D;
MS\Internal\IVisual3DContainer.cs (3)
29void AddChild(Visual3D child); 35void RemoveChild(Visual3D child); 46Visual3D GetChild(int index);
MS\Internal\Media\VisualTreeUtils.cs (15)
58Visual3D visual3D; 68Visual3D.PropagateFlags(visual3D, flags, proxyFlags); 80Visual3D visual3D; 101Visual3D visual3D; 143Visual3D current = (Visual3D) resultAsRayHitTestResult.VisualHit; 153Visual3D parent3D = current.InternalVisualParent as Visual3D; 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) 325Visual3D elementAsVisual3D = element as Visual3D;
MS\Internal\Media3D\M3DUtil.cs (6)
505internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual) 518internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual3DStart, out Viewport3DVisual viewport) 525Visual3D visual3D = dependencyObject as Visual3D; 533Transform3D transform = (Transform3D)visual3D.GetValue(Visual3D.TransformProperty); 559internal static bool TryTransformToViewport3DVisual(Visual3D visual3D, out Viewport3DVisual viewport, out Matrix3D matrix)
MS\Internal\SynchronizedInputHelper.cs (1)
127if(o is Visual || o is Visual3D)
MS\Internal\UIElementHelper.cs (1)
104myParent = ((Visual3D)child).InternalVisualParent;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
167Visual3D asVisual3D = child as Visual3D;
System\Windows\Input\FocusManager.cs (1)
375if (d is Visual || d is Visual3D)
System\Windows\Input\InputElement.cs (5)
67else if (!onlyTraverse2D && o is Visual3D v3D) 115else if (!onlyTraverse2D && o is Visual3D v3D) 146else if (o is Visual3D visual3D) 172v = o as Visual3D; 196rootVisual is Visual && parentVisual is Visual3D)
System\Windows\Input\TouchDevice.cs (1)
1201if (currentChild is Visual || currentChild is Visual3D)
System\Windows\Media\BitmapCacheBrush.cs (2)
209|| (VisualTreeHelper.GetParent(element) is Visual3D) // element is a 2D child of a 3D object, OR 265&& (parent == null || parent is Visual3D || parent == InternalTarget))
System\Windows\Media\Visual.cs (20)
4081if (e is Visual3D) 4083Visual3D.ProcessAncestorChangedNotificationRecursive(e, args); 4125Visual3D visual3D; 4161Visual3D currentAsVisual3D = current as Visual3D; 4198((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4232Visual3D parentAsVisual3D = parent as Visual3D; 4324public GeneralTransform2DTo3D TransformToAncestor(Visual3D ancestor) 4639private GeneralTransform2DTo3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 4660internal bool TrySimpleTransformToAncestor(Visual3D ancestor, 5060Visual3D eAsVisual3D; 5071((Visual3D)e).SetFlags(true, nodeFlag); 5088eAsVisual3D = e as Visual3D; 5115Visual3D eAsVisual3D; 5128((Visual3D)e).SetFlags(false, nodeFlag); 5151eAsVisual3D = e as Visual3D; 5158if(Visual3D.DoAnyChildrenHaveABitSet(eAsVisual3D, treeFlag)) 5252Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualBrush.cs (2)
191|| (VisualTreeHelper.GetParent(element) is Visual3D))) 232&& (parent == null || parent is Visual3D))
System\Windows\Media\VisualTreeHelper.cs (14)
42return (reference is Visual) || (reference is Visual3D); 51Visual3D visual3D; 74Visual3D visual3D; 123Visual3D visual3D; 146Visual3D visual3D; 187internal static Visual3D GetContainingVisual3D(DependencyObject reference) 189Visual3D visual3D = null; 193visual3D = reference as Visual3D; 206Visual3D visual3D; 239else if (current is Visual3D visual3D) 255Visual3D visual3D; 352public static Rect3D GetContentBounds(Visual3D reference) 372public static Rect3D GetDescendantBounds(Visual3D reference) 461Visual3D reference,
System\Windows\Media3D\ContainerUIElement3D.cs (1)
51protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\HitTestParameters3D.cs (1)
195internal Visual3D CurrentVisual;
System\Windows\Media3D\ModelVisual3D.cs (5)
52protected sealed override Visual3D GetVisual3DChild(int index) 76Visual3D visual3D = value as Visual3D; 80throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name)); 152public static new readonly DependencyProperty TransformProperty = Visual3D.TransformProperty;
System\Windows\Media3D\Ray3DHitTestResult.cs (3)
30internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) 46public new Visual3D VisualHit 48get { return (Visual3D) base.VisualHit; }
System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (1)
30Visual3D visualHit,
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
828protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\Viewport3DVisual.cs (10)
317void IVisual3DContainer.AddChild(Visual3D child) 349Visual3D.PropagateFlags( 366void IVisual3DContainer.RemoveChild(Visual3D child) 441Visual3D IVisual3DContainer.GetChild(int index) 443return (Visual3D)InternalGet2DOr3DVisualChild(index); 489HitTestResultBehavior result = Visual3D.HitTestChildren(filterCallback, rayParams, this); 604Visual3D child = _children.InternalGetItem(i); 693Visual3D child = _children.InternalGetItem(i); 772Visual3D child = _children.InternalGetItem((int) i); 823Visual3D visual = _children.InternalGetItem(i);
System\Windows\Media3D\Visual3D.cs (36)
147/* ownerType = */ typeof(Visual3D), 153Visual3D owner = ((Visual3D) d); 225protected void AddVisual3DChild(Visual3D child) 247Visual3D.PropagateFlags( 252Visual3D.PropagateFlags( 276protected void RemoveVisual3DChild(Visual3D child) 293child.SetParent(/* newParent = */ (Visual3D) null); // CS0121: Call is ambigious without casting null to Visual3D. 320Visual3D.PropagateFlags( 560Visual3D eAsVisual3D = e as Visual3D; 583Visual3D.ProcessAncestorChangedNotificationRecursive(child, args); 729Visual3D child = container.GetChild(i); 953internal void SetParent(Visual3D newParent) 988protected virtual Visual3D GetVisual3DChild(int index) 997void IVisual3DContainer.AddChild(Visual3D child) 1006void IVisual3DContainer.RemoveChild(Visual3D child) 1023Visual3D IVisual3DContainer.GetChild(int index) 1121Visual3D child = GetVisual3DChild(i); 1217Visual3D child = GetVisual3DChild(i); 1296Visual3D visual3D; 1320Visual3D current = this; 1349Visual3D current = this; 1372Visual3D current = this; 1477Visual3D child = GetVisual3DChild(i); 1612public GeneralTransform3D TransformToAncestor(Visual3D ancestor) 1633public GeneralTransform3D TransformToDescendant(Visual3D descendant) 1648private GeneralTransform3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 1656Visual3D lastVisual3D = null; 1675Visual3D gAsVisual3D = g as Visual3D; 1702Visual3D containing3DParent = VisualTreeHelper.GetContainingVisual3D(gAsVisual); 2006internal static bool DoAnyChildrenHaveABitSet(Visual3D pe, 2015Visual3D v3D = null; 2038Visual3D e, 2149private Visual3D _3DParent;
System\Windows\Media3D\Visual3DCollection.cs (33)
17public sealed class Visual3DCollection : IList, IList<Visual3D> 45public void Add(Visual3D value) 59private void ConnectChild(int index, Visual3D value) 68public void Insert(int index, Visual3D value) 78public bool Remove(Visual3D value) 115FrugalStructList<Visual3D> oldCollection = _collection; 116_collection = new FrugalStructList<Visual3D>(); 131public void CopyTo(Visual3D[] array, int index) 184public bool Contains(Visual3D value) 194public int IndexOf(Visual3D value) 223IEnumerator<Visual3D> IEnumerable<Visual3D>.GetEnumerator() 241public Visual3D this[int index] 295bool ICollection<Visual3D>.IsReadOnly 321return Contains(value as Visual3D); 329return IndexOf(value as Visual3D); 359Remove(value as Visual3D); 395internal Visual3D InternalGetItem(int index) 431private void VerifyAPIReadOnly(Visual3D other) 443private void VerifyAPIReadWrite(Visual3D other) 449private Visual3D Cast(object value) 453if (!(value is Visual3D)) 458return (Visual3D) value; 461private void VerifyAPIForAdd(Visual3D value) 476private void InternalInsert(int index, Visual3D value) 501Visual3D value = _collection[index]; 545Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>(); 549Visual3D visual = _collection[i]; 583private FrugalStructList<Visual3D> _collection = new FrugalStructList<Visual3D>(); 599public struct Enumerator : IEnumerator<Visual3D>, IEnumerator 669public Visual3D Current
System\Windows\UIElement.cs (6)
1458Visual3D parentAsVisual3D = parent as Visual3D; 1498else if (oldParent is Visual3D) 1500((Visual3D) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4275Visual3D v3DChild = child as Visual3D;
System\Windows\UIElement3D.cs (6)
150Visual3D parentAsVisual3D = parent as Visual3D; 190else if (oldParent is Visual3D) 192((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1357internal static void InvalidateForceInheritPropertyOnChildren(Visual3D v, DependencyProperty property) 1407((Visual3D)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (44)
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
259System.Windows.Media.Media3D.Visual3D visual3D = hitTestResult.VisualHit as System.Windows.Media.Media3D.Visual3D;
MS\Internal\FrameworkObject.cs (4)
306Visual3D visual3D; 317else if ((visual3D = fo.DO as Visual3D) != null) 413Visual3D visual3D; 424else if ((visual3D = _do as Visual3D) != null)
System\Windows\BroadcastEventHelper.cs (4)
465Visual3D visual3D; 476else if ((visual3D = d as Visual3D) != null) 689Visual3D v3D; 702else if ((v3D = d as Visual3D) != null)
System\Windows\Controls\DataGridHelper.cs (1)
566if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
System\Windows\Controls\PopupControlService.cs (5)
698v = o as Visual3D; 704(v is Visual3D && ((Visual3D)v).IsDescendantOf(_currentToolTip))); 1073v = o as Visual3D; 1115nearestVisual = o as Visual3D;
System\Windows\Controls\ViewPort3D.cs (3)
228Visual3D visual3D = value as Visual3D; 232throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), "value");
System\Windows\DescendentsWalker.cs (2)
114else if (d is Visual3D v3D) 154private void WalkVisualChildren( Visual3D v )
System\windows\Documents\TextEditorMouse.cs (2)
769if(hitTestResult.VisualHit is Visual3D) check = ((Visual3D)hitTestResult.VisualHit).IsDescendantOf(renderScope);
System\Windows\FrameworkElement.cs (6)
2480else if (newParent is Visual3D) 2482((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2494else if (oldParent is Visual3D) 2496((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2949if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot)) 3137if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
System\Windows\FrameworkElementFactory.cs (3)
88!typeof(Visual3D).IsAssignableFrom(value)) 672Visual3D treeNodeVisual3D = null; 679treeNodeVisual3D = treeNode as Visual3D;
System\Windows\Input\KeyboardNavigation.cs (8)
147if (d is Visual || d is Visual3D) 1483elementAsVisual = e as Visual3D; 1544elementAsVisual = e as Visual3D; 1590Visual3D visual3DFocusedElement = focusedElement as Visual3D; 1657elementAsVisual = e as Visual3D; 1722elementAsVisual = e as Visual3D; 1749if (e is Visual || e is Visual3D)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
828case 734: t = () => typeof(Visual3D); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11218typeof(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)
2340else if (throwIfNeither && !(d is System.Windows.Media.Media3D.Visual3D) )