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