3 types derived from Visual3D
PresentationCore (3)
System\Windows\Media3D\ModelVisual3D.cs (1)
14public class ModelVisual3D : Visual3D, IAddChild
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
16public sealed class Viewport2DVisual3D : Visual3D
System\Windows\UIElement3D.cs (1)
25public abstract partial class UIElement3D : Visual3D, IInputElement
222 references to Visual3D
PresentationCore (178)
MS\Internal\DeferredElementTreeState.cs (2)
45Visual3D v3D = element as Visual3D;
MS\Internal\IVisual3DContainer.cs (3)
28void AddChild(Visual3D child); 34void RemoveChild(Visual3D child); 45Visual3D GetChild(int index);
MS\Internal\Media\VisualTreeUtils.cs (15)
57Visual3D visual3D; 67Visual3D.PropagateFlags(visual3D, flags, proxyFlags); 79Visual3D visual3D; 100Visual3D visual3D; 142Visual3D current = (Visual3D) resultAsRayHitTestResult.VisualHit; 152Visual3D parent3D = current.InternalVisualParent as Visual3D; 217if (!(element is Visual || element is Visual3D)) 229internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 245internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 275internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D) 313private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D) 324Visual3D elementAsVisual3D = element as Visual3D;
MS\Internal\Media3D\M3DUtil.cs (6)
504internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual) 517internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual3DStart, out Viewport3DVisual viewport) 524Visual3D visual3D = dependencyObject as Visual3D; 532Transform3D transform = (Transform3D)visual3D.GetValue(Visual3D.TransformProperty); 555internal static bool TryTransformToViewport3DVisual(Visual3D visual3D, out Viewport3DVisual viewport, out Matrix3D matrix)
MS\Internal\SynchronizedInputHelper.cs (1)
126if(o is Visual || o is Visual3D)
MS\Internal\UIElementHelper.cs (1)
103myParent = ((Visual3D)child).InternalVisualParent;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
166Visual3D asVisual3D = child as Visual3D;
System\Windows\Input\FocusManager.cs (1)
371if (d is Visual || d is Visual3D)
System\Windows\Input\InputElement.cs (5)
66else if (!onlyTraverse2D && o is Visual3D v3D) 114else if (!onlyTraverse2D && o is Visual3D v3D) 145else if (o is Visual3D visual3D) 171v = o as Visual3D; 195rootVisual is Visual && parentVisual is Visual3D)
System\Windows\Input\TouchDevice.cs (1)
1199if (currentChild is Visual || currentChild is Visual3D)
System\Windows\Media\BitmapCacheBrush.cs (2)
202|| (VisualTreeHelper.GetParent(element) is Visual3D) // element is a 2D child of a 3D object, OR 258&& (parent == null || parent is Visual3D || parent == InternalTarget))
System\Windows\Media\Visual.cs (20)
4080if (e is Visual3D) 4082Visual3D.ProcessAncestorChangedNotificationRecursive(e, args); 4124Visual3D visual3D; 4160Visual3D currentAsVisual3D = current as Visual3D; 4197((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4231Visual3D parentAsVisual3D = parent as Visual3D; 4323public GeneralTransform2DTo3D TransformToAncestor(Visual3D ancestor) 4635private GeneralTransform2DTo3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 4656internal bool TrySimpleTransformToAncestor(Visual3D ancestor, 5053Visual3D eAsVisual3D; 5064((Visual3D)e).SetFlags(true, nodeFlag); 5081eAsVisual3D = e as Visual3D; 5108Visual3D eAsVisual3D; 5121((Visual3D)e).SetFlags(false, nodeFlag); 5144eAsVisual3D = e as Visual3D; 5151if(Visual3D.DoAnyChildrenHaveABitSet(eAsVisual3D, treeFlag)) 5245Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualBrush.cs (2)
184|| (VisualTreeHelper.GetParent(element) is Visual3D))) 225&& (parent == null || parent is Visual3D))
System\Windows\Media\VisualTreeHelper.cs (14)
41return (reference is Visual) || (reference is Visual3D); 50Visual3D visual3D; 73Visual3D visual3D; 122Visual3D visual3D; 145Visual3D visual3D; 186internal static Visual3D GetContainingVisual3D(DependencyObject reference) 188Visual3D visual3D = null; 192visual3D = reference as Visual3D; 205Visual3D visual3D; 238else if (current is Visual3D visual3D) 254Visual3D visual3D; 351public static Rect3D GetContentBounds(Visual3D reference) 371public static Rect3D GetDescendantBounds(Visual3D reference) 460Visual3D reference,
System\Windows\Media3D\ContainerUIElement3D.cs (1)
50protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\HitTestParameters3D.cs (1)
194internal Visual3D CurrentVisual;
System\Windows\Media3D\ModelVisual3D.cs (5)
51protected sealed override Visual3D GetVisual3DChild(int index) 75Visual3D visual3D = value as Visual3D; 79throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, nameof(Visual3D))); 151public static new readonly DependencyProperty TransformProperty = Visual3D.TransformProperty;
System\Windows\Media3D\Ray3DHitTestResult.cs (3)
29internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) 45public new Visual3D VisualHit 47get { return (Visual3D) base.VisualHit; }
System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (1)
29Visual3D visualHit,
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
827protected override Visual3D GetVisual3DChild(int index)
System\Windows\Media3D\Viewport3DVisual.cs (10)
316void IVisual3DContainer.AddChild(Visual3D child) 345Visual3D.PropagateFlags( 362void IVisual3DContainer.RemoveChild(Visual3D child) 434Visual3D IVisual3DContainer.GetChild(int index) 436return (Visual3D)InternalGet2DOr3DVisualChild(index); 482HitTestResultBehavior result = Visual3D.HitTestChildren(filterCallback, rayParams, this); 597Visual3D child = _children.InternalGetItem(i); 686Visual3D child = _children.InternalGetItem(i); 765Visual3D child = _children.InternalGetItem((int) i); 816Visual3D visual = _children.InternalGetItem(i);
System\Windows\Media3D\Visual3D.cs (36)
146ownerType: typeof(Visual3D), 152Visual3D owner = ((Visual3D) d); 224protected void AddVisual3DChild(Visual3D child) 246Visual3D.PropagateFlags( 251Visual3D.PropagateFlags( 275protected void RemoveVisual3DChild(Visual3D child) 292child.SetParent(newParent: (Visual3D) null); // CS0121: Call is ambigious without casting null to Visual3D. 319Visual3D.PropagateFlags( 559Visual3D eAsVisual3D = e as Visual3D; 582Visual3D.ProcessAncestorChangedNotificationRecursive(child, args); 728Visual3D child = container.GetChild(i); 952internal void SetParent(Visual3D newParent) 987protected virtual Visual3D GetVisual3DChild(int index) 996void IVisual3DContainer.AddChild(Visual3D child) 1005void IVisual3DContainer.RemoveChild(Visual3D child) 1022Visual3D IVisual3DContainer.GetChild(int index) 1120Visual3D child = GetVisual3DChild(i); 1216Visual3D child = GetVisual3DChild(i); 1295Visual3D visual3D; 1319Visual3D current = this; 1348Visual3D current = this; 1371Visual3D current = this; 1476Visual3D child = GetVisual3DChild(i); 1611public GeneralTransform3D TransformToAncestor(Visual3D ancestor) 1632public GeneralTransform3D TransformToDescendant(Visual3D descendant) 1647private GeneralTransform3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 1655Visual3D lastVisual3D = null; 1674Visual3D gAsVisual3D = g as Visual3D; 1698Visual3D containing3DParent = VisualTreeHelper.GetContainingVisual3D(gAsVisual); 1999internal static bool DoAnyChildrenHaveABitSet(Visual3D pe, 2008Visual3D v3D = null; 2031Visual3D e, 2142private Visual3D _3DParent;
System\Windows\Media3D\Visual3DCollection.cs (33)
14public sealed class Visual3DCollection : IList, IList<Visual3D> 42public void Add(Visual3D value) 56private void ConnectChild(int index, Visual3D value) 65public void Insert(int index, Visual3D value) 75public bool Remove(Visual3D value) 112FrugalStructList<Visual3D> oldCollection = _collection; 113_collection = new FrugalStructList<Visual3D>(); 128public void CopyTo(Visual3D[] array, int index) 181public bool Contains(Visual3D value) 191public int IndexOf(Visual3D value) 218IEnumerator<Visual3D> IEnumerable<Visual3D>.GetEnumerator() 236public Visual3D this[int index] 290bool ICollection<Visual3D>.IsReadOnly 316return Contains(value as Visual3D); 324return IndexOf(value as Visual3D); 354Remove(value as Visual3D); 390internal Visual3D InternalGetItem(int index) 426private void VerifyAPIReadOnly(Visual3D other) 438private void VerifyAPIReadWrite(Visual3D other) 444private Visual3D Cast(object value) 448if (!(value is Visual3D)) 453return (Visual3D) value; 456private void VerifyAPIForAdd(Visual3D value) 471private void InternalInsert(int index, Visual3D value) 496Visual3D value = _collection[index]; 540Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>(); 544Visual3D visual = _collection[i]; 578private FrugalStructList<Visual3D> _collection = new FrugalStructList<Visual3D>(); 594public struct Enumerator : IEnumerator<Visual3D>, IEnumerator 664public Visual3D Current
System\Windows\UIElement.cs (6)
1449Visual3D parentAsVisual3D = parent as Visual3D; 1489else if (oldParent is Visual3D) 1491((Visual3D) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4259Visual3D v3DChild = child as Visual3D;
System\Windows\UIElement3D.cs (6)
149Visual3D parentAsVisual3D = parent as Visual3D; 189else if (oldParent is Visual3D) 191((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1355internal static void InvalidateForceInheritPropertyOnChildren(Visual3D v, DependencyProperty property) 1405((Visual3D)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (44)
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
258System.Windows.Media.Media3D.Visual3D visual3D = hitTestResult.VisualHit as System.Windows.Media.Media3D.Visual3D;
MS\Internal\FrameworkObject.cs (4)
305Visual3D visual3D; 316else if ((visual3D = fo.DO as Visual3D) != null) 412Visual3D visual3D; 423else if ((visual3D = _do as Visual3D) != null)
System\Windows\BroadcastEventHelper.cs (4)
464Visual3D visual3D; 475else if ((visual3D = d as Visual3D) != null) 688Visual3D v3D; 701else if ((v3D = d as Visual3D) != null)
System\Windows\Controls\DataGridHelper.cs (1)
565if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
System\Windows\Controls\PopupControlService.cs (5)
704v = o as Visual3D; 710(v is Visual3D && ((Visual3D)v).IsDescendantOf(_currentToolTip))); 1079v = o as Visual3D; 1121nearestVisual = 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)), nameof(value));
System\Windows\DescendentsWalker.cs (2)
113else if (d is Visual3D v3D) 153private void WalkVisualChildren( Visual3D v )
System\windows\Documents\TextEditorMouse.cs (2)
765if(hitTestResult.VisualHit is Visual3D) check = ((Visual3D)hitTestResult.VisualHit).IsDescendantOf(renderScope);
System\Windows\FrameworkElement.cs (6)
2471else if (newParent is Visual3D) 2473((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2485else if (oldParent is Visual3D) 2487((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2940if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot)) 3125if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
System\Windows\FrameworkElementFactory.cs (3)
85!typeof(Visual3D).IsAssignableFrom(value)) 669Visual3D treeNodeVisual3D = null; 676treeNodeVisual3D = treeNode as Visual3D;
System\Windows\Input\KeyboardNavigation.cs (8)
146if (d is Visual || d is Visual3D) 1481elementAsVisual = e as Visual3D; 1542elementAsVisual = e as Visual3D; 1588Visual3D visual3DFocusedElement = focusedElement as Visual3D; 1655elementAsVisual = e as Visual3D; 1720elementAsVisual = e as Visual3D; 1747if (e is Visual || e is Visual3D)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
827case 734: t = () => typeof(Visual3D); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
12465typeof(System.Windows.Media.Media3D.Visual3D),
System\Windows\Markup\KnownTypes.cs (1)
6281case KnownElements.Visual3D: t = typeof(System.Windows.Media.Media3D.Visual3D); break;
System\Windows\StyleHelper.cs (1)
2334else if (throwIfNeither && !(d is System.Windows.Media.Media3D.Visual3D) )