3 types derived from Visual3D
PresentationCore (3)
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (1)
35public class ModelVisual3D : Visual3D, IAddChild
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
43public sealed class Viewport2DVisual3D : Visual3D
Core\CSharp\System\Windows\UIElement3D.cs (1)
43public abstract partial class UIElement3D : Visual3D, IInputElement
227 references to Visual3D
PresentationCore (181)
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (2)
43Visual3D v3D = element as Visual3D;
Core\CSharp\MS\Internal\IVisual3DContainer.cs (3)
37void AddChild(Visual3D child); 43void RemoveChild(Visual3D child); 54Visual3D GetChild(int index);
Core\CSharp\MS\Internal\Media\VisualTreeUtils.cs (15)
72Visual3D visual3D; 82Visual3D.PropagateFlags(visual3D, flags, proxyFlags); 94Visual3D visual3D; 115Visual3D visual3D; 157Visual3D current = (Visual3D) resultAsRayHitTestResult.VisualHit; 167Visual3D parent3D = current.InternalVisualParent as Visual3D; 232if (!(element is Visual || element is Visual3D)) 244internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 263internal static void AsVisual(DependencyObject element, out Visual visual, out Visual3D visual3D) 293internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out Visual3D visual3D) 331private static bool AsVisualHelper(DependencyObject element, out Visual visual, out Visual3D visual3D) 342Visual3D elementAsVisual3D = element as Visual3D;
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (6)
510internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual) 523internal static Matrix3D GetWorldTransformationMatrix(Visual3D visual3DStart, out Viewport3DVisual viewport) 530Visual3D visual3D = dependencyObject as Visual3D; 538Transform3D transform = (Transform3D)visual3D.GetValue(Visual3D.TransformProperty); 564internal static bool TryTransformToViewport3DVisual(Visual3D visual3D, out Viewport3DVisual viewport, out Matrix3D matrix)
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (1)
127if(o is Visual || o is Visual3D)
Core\CSharp\MS\Internal\UIElementHelper.cs (1)
110myParent = ((Visual3D)child).InternalVisualParent;
Core\CSharp\System\Windows\Diagnostics\VisualDiagnostics.cs (2)
185Visual3D asVisual3D = child as Visual3D;
Core\CSharp\System\Windows\Input\FocusManager.cs (1)
405if (d is Visual || d is Visual3D)
Core\CSharp\System\Windows\Input\InputElement.cs (7)
53Visual3D v3D; 92else if (!onlyTraverse2D && (v3D = o as Visual3D) != null) 118Visual3D v3D; 142else if (!onlyTraverse2D && (v3D = o as Visual3D) != null) 175v = (Visual3D)o; 202v = o as Visual3D; 226rootVisual is Visual && parentVisual is Visual3D)
Core\CSharp\System\Windows\Input\TouchDevice.cs (1)
1302if (currentChild is Visual || currentChild is Visual3D)
Core\CSharp\System\Windows\Media\BitmapCacheBrush.cs (2)
220|| (VisualTreeHelper.GetParent(element) is Visual3D) // element is a 2D child of a 3D object, OR 276&& (parent == null || parent is Visual3D || parent == InternalTarget))
Core\CSharp\System\Windows\Media\Visual.cs (20)
4127if (e is Visual3D) 4129Visual3D.ProcessAncestorChangedNotificationRecursive(e, args); 4171Visual3D visual3D; 4210Visual3D currentAsVisual3D = current as Visual3D; 4247((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4281Visual3D parentAsVisual3D = parent as Visual3D; 4380public GeneralTransform2DTo3D TransformToAncestor(Visual3D ancestor) 4701private GeneralTransform2DTo3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 4722internal bool TrySimpleTransformToAncestor(Visual3D ancestor, 5122Visual3D eAsVisual3D; 5133((Visual3D)e).SetFlags(true, nodeFlag); 5150eAsVisual3D = e as Visual3D; 5177Visual3D eAsVisual3D; 5190((Visual3D)e).SetFlags(false, nodeFlag); 5213eAsVisual3D = e as Visual3D; 5220if(Visual3D.DoAnyChildrenHaveABitSet(eAsVisual3D, treeFlag)) 5315Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
Core\CSharp\System\Windows\Media\VisualBrush.cs (2)
203|| (VisualTreeHelper.GetParent(element) is Visual3D))) 244&& (parent == null || parent is Visual3D))
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (15)
56return (reference is Visual) || (reference is Visual3D); 65Visual3D visual3D; 88Visual3D visual3D; 137Visual3D visual3D; 161Visual3D visual3D; 202internal static Visual3D GetContainingVisual3D(DependencyObject reference) 204Visual3D visual3D = null; 208visual3D = reference as Visual3D; 221Visual3D visual3D; 257Visual3D visual3D; 263else if ((visual3D = current as Visual3D) != null) 279Visual3D visual3D; 376public static Rect3D GetContentBounds(Visual3D reference) 396public static Rect3D GetDescendantBounds(Visual3D reference) 486Visual3D reference,
Core\CSharp\System\Windows\Media3D\ContainerUIElement3D.cs (1)
64protected override Visual3D GetVisual3DChild(int index)
Core\CSharp\System\Windows\Media3D\HitTestParameters3D.cs (1)
206internal Visual3D CurrentVisual;
Core\CSharp\System\Windows\Media3D\ModelVisual3D.cs (5)
72protected sealed override Visual3D GetVisual3DChild(int index) 99Visual3D visual3D = value as Visual3D; 103throw new System.ArgumentException(SR.Get(SRID.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(Visual3D).Name)); 175public static new readonly DependencyProperty TransformProperty = Visual3D.TransformProperty;
Core\CSharp\System\Windows\Media3D\Ray3DHitTestResult.cs (3)
38internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) 54public new Visual3D VisualHit 56get { return (Visual3D) base.VisualHit; }
Core\CSharp\System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (1)
38Visual3D visualHit,
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (1)
855protected override Visual3D GetVisual3DChild(int index)
Core\CSharp\System\Windows\Media3D\Viewport3DVisual.cs (10)
332void IVisual3DContainer.AddChild(Visual3D child) 364Visual3D.PropagateFlags( 381void IVisual3DContainer.RemoveChild(Visual3D child) 456Visual3D IVisual3DContainer.GetChild(int index) 458return (Visual3D)InternalGet2DOr3DVisualChild(index); 504HitTestResultBehavior result = Visual3D.HitTestChildren(filterCallback, rayParams, this); 619Visual3D child = _children.InternalGetItem(i); 708Visual3D child = _children.InternalGetItem(i); 787Visual3D child = _children.InternalGetItem((int) i); 838Visual3D visual = _children.InternalGetItem(i);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (36)
164/* ownerType = */ typeof(Visual3D), 170Visual3D owner = ((Visual3D) d); 242protected void AddVisual3DChild(Visual3D child) 264Visual3D.PropagateFlags( 269Visual3D.PropagateFlags( 293protected void RemoveVisual3DChild(Visual3D child) 310child.SetParent(/* newParent = */ (Visual3D) null); // CS0121: Call is ambigious without casting null to Visual3D. 337Visual3D.PropagateFlags( 577Visual3D eAsVisual3D = e as Visual3D; 600Visual3D.ProcessAncestorChangedNotificationRecursive(child, args); 752Visual3D child = container.GetChild(i); 977internal void SetParent(Visual3D newParent) 1012protected virtual Visual3D GetVisual3DChild(int index) 1021void IVisual3DContainer.AddChild(Visual3D child) 1030void IVisual3DContainer.RemoveChild(Visual3D child) 1047Visual3D IVisual3DContainer.GetChild(int index) 1145Visual3D child = GetVisual3DChild(i); 1241Visual3D child = GetVisual3DChild(i); 1320Visual3D visual3D; 1347Visual3D current = this; 1376Visual3D current = this; 1399Visual3D current = this; 1507Visual3D child = GetVisual3DChild(i); 1642public GeneralTransform3D TransformToAncestor(Visual3D ancestor) 1666public GeneralTransform3D TransformToDescendant(Visual3D descendant) 1684private GeneralTransform3D InternalTransformToAncestor(Visual3D ancestor, bool inverse) 1692Visual3D lastVisual3D = null; 1711Visual3D gAsVisual3D = g as Visual3D; 1738Visual3D containing3DParent = VisualTreeHelper.GetContainingVisual3D(gAsVisual); 2047internal static bool DoAnyChildrenHaveABitSet(Visual3D pe, 2057Visual3D v3D = null; 2080Visual3D e, 2191private Visual3D _3DParent;
Core\CSharp\System\Windows\Media3D\Visual3DCollection.cs (33)
32public sealed class Visual3DCollection : IList, IList<Visual3D> 60public void Add(Visual3D value) 74private void ConnectChild(int index, Visual3D value) 83public void Insert(int index, Visual3D value) 93public bool Remove(Visual3D value) 132FrugalStructList<Visual3D> oldCollection = _collection; 133_collection = new FrugalStructList<Visual3D>(); 148public void CopyTo(Visual3D[] array, int index) 209public bool Contains(Visual3D value) 219public int IndexOf(Visual3D value) 248IEnumerator<Visual3D> IEnumerable<Visual3D>.GetEnumerator() 266public Visual3D this[int index] 322bool ICollection<Visual3D>.IsReadOnly 348return Contains(value as Visual3D); 356return IndexOf(value as Visual3D); 386Remove(value as Visual3D); 422internal Visual3D InternalGetItem(int index) 458private void VerifyAPIReadOnly(Visual3D other) 470private void VerifyAPIReadWrite(Visual3D other) 476private Visual3D Cast(object value) 483if (!(value is Visual3D)) 488return (Visual3D) value; 491private void VerifyAPIForAdd(Visual3D value) 506private void InternalInsert(int index, Visual3D value) 531Visual3D value = _collection[index]; 575Dictionary<Visual3D, string> duplicates = new Dictionary<Visual3D, string>(); 579Visual3D visual = _collection[i]; 612private FrugalStructList<Visual3D> _collection = new FrugalStructList<Visual3D>(); 628public struct Enumerator : IEnumerator<Visual3D>, IEnumerator 698public Visual3D Current
Core\CSharp\System\Windows\UIElement.cs (6)
1477Visual3D parentAsVisual3D = parent as Visual3D; 1517else if (oldParent is Visual3D) 1519((Visual3D) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 4323Visual3D v3DChild = child as Visual3D;
Core\CSharp\System\Windows\UIElement3D.cs (6)
172Visual3D parentAsVisual3D = parent as Visual3D; 212else if (oldParent is Visual3D) 214((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit); 1386internal static void InvalidateForceInheritPropertyOnChildren(Visual3D v, DependencyProperty property) 1436((Visual3D)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (45)
src\Framework\MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
270System.Windows.Media.Media3D.Visual3D visual3D = hitTestResult.VisualHit as System.Windows.Media.Media3D.Visual3D;
src\Framework\MS\Internal\FrameworkObject.cs (4)
337Visual3D visual3D; 348else if ((visual3D = fo.DO as Visual3D) != null) 444Visual3D visual3D; 455else if ((visual3D = _do as Visual3D) != null)
src\Framework\System\Windows\BroadcastEventHelper.cs (4)
469Visual3D visual3D; 480else if ((visual3D = d as Visual3D) != null) 693Visual3D v3D; 706else if ((v3D = d as Visual3D) != null)
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
571if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.Visual3D)
src\Framework\System\Windows\Controls\PopupControlService.cs (5)
434v = o as Visual3D; 440(v is Visual3D && ((Visual3D)v).IsDescendantOf(_currentToolTip))); 963v = o as Visual3D; 1005nearestVisual = o as Visual3D;
src\Framework\System\Windows\Controls\ViewPort3D.cs (3)
241Visual3D visual3D = value as Visual3D; 245throw new ArgumentException(SR.Get(SRID.UnexpectedParameterType, value.GetType(), typeof(Visual3D)), "value");
src\Framework\System\Windows\DescendentsWalker.cs (3)
120Visual3D v3D = d as Visual3D; 162private void WalkVisualChildren( Visual3D v )
src\Framework\System\windows\Documents\TextEditorMouse.cs (2)
784if(hitTestResult.VisualHit is Visual3D) check = ((Visual3D)hitTestResult.VisualHit).IsDescendantOf(renderScope);
src\Framework\System\Windows\FrameworkElement.cs (6)
2489else if (newParent is Visual3D) 2491((Visual3D)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2503else if (oldParent is Visual3D) 2505((Visual3D)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged); 2958if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot)) 3147if (((Visual3D)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
src\Framework\System\Windows\FrameworkElementFactory.cs (3)
93!typeof(Visual3D).IsAssignableFrom(value)) 702Visual3D treeNodeVisual3D = null; 709treeNodeVisual3D = treeNode as Visual3D;
src\Framework\System\Windows\Input\KeyboardNavigation.cs (8)
169if (d is Visual || d is Visual3D) 1579elementAsVisual = e as Visual3D; 1640elementAsVisual = e as Visual3D; 1686Visual3D visual3DFocusedElement = focusedElement as Visual3D; 1753elementAsVisual = e as Visual3D; 1818elementAsVisual = e as Visual3D; 1845if (e is Visual || e is Visual3D)
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
826case 734: t = () => typeof(Visual3D); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11216typeof(System.Windows.Media.Media3D.Visual3D),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6278case KnownElements.Visual3D: t = typeof(System.Windows.Media.Media3D.Visual3D); break;
src\Framework\System\Windows\StyleHelper.cs (1)
2346else if (throwIfNeither && !(d is System.Windows.Media.Media3D.Visual3D) )
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\VisualTreeUtils.cs (1)
335if (element is Visual || element is Visual3D)