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