3 types derived from Visual3D
PresentationCore (3)
System\Windows\Media3D\ModelVisual3D.cs (1)
31
public class ModelVisual3D :
Visual3D
, IAddChild
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
34
public sealed class Viewport2DVisual3D :
Visual3D
System\Windows\UIElement3D.cs (1)
41
public abstract partial class UIElement3D :
Visual3D
, IInputElement
222 references to Visual3D
PresentationCore (178)
MS\Internal\DeferredElementTreeState.cs (2)
47
Visual3D
v3D = element as
Visual3D
;
MS\Internal\IVisual3DContainer.cs (3)
32
void AddChild(
Visual3D
child);
38
void RemoveChild(
Visual3D
child);
49
Visual3D
GetChild(int index);
MS\Internal\Media\VisualTreeUtils.cs (15)
64
Visual3D
visual3D;
74
Visual3D
.PropagateFlags(visual3D, flags, proxyFlags);
86
Visual3D
visual3D;
107
Visual3D
visual3D;
149
Visual3D
current = (
Visual3D
) resultAsRayHitTestResult.VisualHit;
159
Visual3D
parent3D = current.InternalVisualParent as
Visual3D
;
224
if (!(element is Visual || element is
Visual3D
))
236
internal static void AsNonNullVisual(DependencyObject element, out Visual visual, out
Visual3D
visual3D)
252
internal static void AsVisual(DependencyObject element, out Visual visual, out
Visual3D
visual3D)
282
internal static bool AsVisualInternal(DependencyObject element, out Visual visual, out
Visual3D
visual3D)
320
private static bool AsVisualHelper(DependencyObject element, out Visual visual, out
Visual3D
visual3D)
331
Visual3D
elementAsVisual3D = element as
Visual3D
;
MS\Internal\Media3D\M3DUtil.cs (6)
508
internal static Matrix3D GetWorldTransformationMatrix(
Visual3D
visual)
521
internal static Matrix3D GetWorldTransformationMatrix(
Visual3D
visual3DStart, out Viewport3DVisual viewport)
528
Visual3D
visual3D = dependencyObject as
Visual3D
;
536
Transform3D transform = (Transform3D)visual3D.GetValue(
Visual3D
.TransformProperty);
562
internal static bool TryTransformToViewport3DVisual(
Visual3D
visual3D, out Viewport3DVisual viewport, out Matrix3D matrix)
MS\Internal\SynchronizedInputHelper.cs (1)
131
if(o is Visual || o is
Visual3D
)
MS\Internal\UIElementHelper.cs (1)
106
myParent = ((
Visual3D
)child).InternalVisualParent;
System\Windows\Diagnostics\VisualDiagnostics.cs (2)
172
Visual3D
asVisual3D = child as
Visual3D
;
System\Windows\Input\FocusManager.cs (1)
385
if (d is Visual || d is
Visual3D
)
System\Windows\Input\InputElement.cs (5)
71
else if (!onlyTraverse2D && o is
Visual3D
v3D)
119
else if (!onlyTraverse2D && o is
Visual3D
v3D)
150
else if (o is
Visual3D
visual3D)
176
v = o as
Visual3D
;
200
rootVisual is Visual && parentVisual is
Visual3D
)
System\Windows\Input\TouchDevice.cs (1)
1213
if (currentChild is Visual || currentChild is
Visual3D
)
System\Windows\Media\BitmapCacheBrush.cs (2)
217
|| (VisualTreeHelper.GetParent(element) is
Visual3D
) // element is a 2D child of a 3D object, OR
273
&& (parent == null || parent is
Visual3D
|| parent == InternalTarget))
System\Windows\Media\Visual.cs (20)
4097
if (e is
Visual3D
)
4099
Visual3D
.ProcessAncestorChangedNotificationRecursive(e, args);
4141
Visual3D
visual3D;
4177
Visual3D
currentAsVisual3D = current as
Visual3D
;
4214
((
Visual3D
)current._parent).SetFlagsToRoot(value, flag);
4248
Visual3D
parentAsVisual3D = parent as
Visual3D
;
4340
public GeneralTransform2DTo3D TransformToAncestor(
Visual3D
ancestor)
4655
private GeneralTransform2DTo3D InternalTransformToAncestor(
Visual3D
ancestor, bool inverse)
4676
internal bool TrySimpleTransformToAncestor(
Visual3D
ancestor,
5076
Visual3D
eAsVisual3D;
5087
((
Visual3D
)e).SetFlags(true, nodeFlag);
5104
eAsVisual3D = e as
Visual3D
;
5131
Visual3D
eAsVisual3D;
5144
((
Visual3D
)e).SetFlags(false, nodeFlag);
5167
eAsVisual3D = e as
Visual3D
;
5174
if(
Visual3D
.DoAnyChildrenHaveABitSet(eAsVisual3D, treeFlag))
5268
Visual3D
.PropagateFlags((
Visual3D
)e._parent, flags, proxyFlags);
System\Windows\Media\VisualBrush.cs (2)
200
|| (VisualTreeHelper.GetParent(element) is
Visual3D
)))
241
&& (parent == null || parent is
Visual3D
))
System\Windows\Media\VisualTreeHelper.cs (14)
51
return (reference is Visual) || (reference is
Visual3D
);
60
Visual3D
visual3D;
83
Visual3D
visual3D;
132
Visual3D
visual3D;
155
Visual3D
visual3D;
196
internal static
Visual3D
GetContainingVisual3D(DependencyObject reference)
198
Visual3D
visual3D = null;
202
visual3D = reference as
Visual3D
;
215
Visual3D
visual3D;
248
else if (current is
Visual3D
visual3D)
264
Visual3D
visual3D;
361
public static Rect3D GetContentBounds(
Visual3D
reference)
381
public static Rect3D GetDescendantBounds(
Visual3D
reference)
470
Visual3D
reference,
System\Windows\Media3D\ContainerUIElement3D.cs (1)
60
protected override
Visual3D
GetVisual3DChild(int index)
System\Windows\Media3D\HitTestParameters3D.cs (1)
202
internal
Visual3D
CurrentVisual;
System\Windows\Media3D\ModelVisual3D.cs (5)
68
protected sealed override
Visual3D
GetVisual3DChild(int index)
92
Visual3D
visual3D = value as
Visual3D
;
96
throw new System.ArgumentException(SR.Format(SR.Collection_BadType, this.GetType().Name, value.GetType().Name, typeof(
Visual3D
).Name));
168
public static new readonly DependencyProperty TransformProperty =
Visual3D
.TransformProperty;
System\Windows\Media3D\Ray3DHitTestResult.cs (3)
35
internal RayHitTestResult(
Visual3D
visualHit, Model3D modelHit) : base (visualHit)
51
public new
Visual3D
VisualHit
53
get { return (
Visual3D
) base.VisualHit; }
System\Windows\Media3D\RayMeshGeometry3DHitTestResult.cs (1)
35
Visual3D
visualHit,
System\Windows\Media3D\Viewport2DVisual3D.cs (1)
845
protected override
Visual3D
GetVisual3DChild(int index)
System\Windows\Media3D\Viewport3DVisual.cs (10)
328
void IVisual3DContainer.AddChild(
Visual3D
child)
360
Visual3D
.PropagateFlags(
377
void IVisual3DContainer.RemoveChild(
Visual3D
child)
452
Visual3D
IVisual3DContainer.GetChild(int index)
454
return (
Visual3D
)InternalGet2DOr3DVisualChild(index);
500
HitTestResultBehavior result =
Visual3D
.HitTestChildren(filterCallback, rayParams, this);
615
Visual3D
child = _children.InternalGetItem(i);
704
Visual3D
child = _children.InternalGetItem(i);
783
Visual3D
child = _children.InternalGetItem((int) i);
834
Visual3D
visual = _children.InternalGetItem(i);
System\Windows\Media3D\Visual3D.cs (36)
155
/* ownerType = */ typeof(
Visual3D
),
161
Visual3D
owner = ((
Visual3D
) d);
233
protected void AddVisual3DChild(
Visual3D
child)
255
Visual3D
.PropagateFlags(
260
Visual3D
.PropagateFlags(
284
protected void RemoveVisual3DChild(
Visual3D
child)
301
child.SetParent(/* newParent = */ (
Visual3D
) null); // CS0121: Call is ambigious without casting null to Visual3D.
328
Visual3D
.PropagateFlags(
568
Visual3D
eAsVisual3D = e as
Visual3D
;
591
Visual3D
.ProcessAncestorChangedNotificationRecursive(child, args);
737
Visual3D
child = container.GetChild(i);
961
internal void SetParent(
Visual3D
newParent)
996
protected virtual
Visual3D
GetVisual3DChild(int index)
1005
void IVisual3DContainer.AddChild(
Visual3D
child)
1014
void IVisual3DContainer.RemoveChild(
Visual3D
child)
1031
Visual3D
IVisual3DContainer.GetChild(int index)
1129
Visual3D
child = GetVisual3DChild(i);
1225
Visual3D
child = GetVisual3DChild(i);
1304
Visual3D
visual3D;
1328
Visual3D
current = this;
1357
Visual3D
current = this;
1380
Visual3D
current = this;
1485
Visual3D
child = GetVisual3DChild(i);
1620
public GeneralTransform3D TransformToAncestor(
Visual3D
ancestor)
1641
public GeneralTransform3D TransformToDescendant(
Visual3D
descendant)
1656
private GeneralTransform3D InternalTransformToAncestor(
Visual3D
ancestor, bool inverse)
1664
Visual3D
lastVisual3D = null;
1683
Visual3D
gAsVisual3D = g as
Visual3D
;
1710
Visual3D
containing3DParent = VisualTreeHelper.GetContainingVisual3D(gAsVisual);
2014
internal static bool DoAnyChildrenHaveABitSet(
Visual3D
pe,
2023
Visual3D
v3D = null;
2046
Visual3D
e,
2157
private
Visual3D
_3DParent;
System\Windows\Media3D\Visual3DCollection.cs (33)
28
public sealed class Visual3DCollection : IList, IList<
Visual3D
>
56
public void Add(
Visual3D
value)
70
private void ConnectChild(int index,
Visual3D
value)
79
public void Insert(int index,
Visual3D
value)
89
public bool Remove(
Visual3D
value)
126
FrugalStructList<
Visual3D
> oldCollection = _collection;
127
_collection = new FrugalStructList<
Visual3D
>();
142
public void CopyTo(
Visual3D
[] array, int index)
195
public bool Contains(
Visual3D
value)
205
public int IndexOf(
Visual3D
value)
234
IEnumerator<
Visual3D
> IEnumerable<
Visual3D
>.GetEnumerator()
252
public
Visual3D
this[int index]
306
bool ICollection<
Visual3D
>.IsReadOnly
332
return Contains(value as
Visual3D
);
340
return IndexOf(value as
Visual3D
);
370
Remove(value as
Visual3D
);
406
internal
Visual3D
InternalGetItem(int index)
442
private void VerifyAPIReadOnly(
Visual3D
other)
454
private void VerifyAPIReadWrite(
Visual3D
other)
460
private
Visual3D
Cast(object value)
464
if (!(value is
Visual3D
))
469
return (
Visual3D
) value;
472
private void VerifyAPIForAdd(
Visual3D
value)
487
private void InternalInsert(int index,
Visual3D
value)
512
Visual3D
value = _collection[index];
556
Dictionary<
Visual3D
, string> duplicates = new Dictionary<
Visual3D
, string>();
560
Visual3D
visual = _collection[i];
594
private FrugalStructList<
Visual3D
> _collection = new FrugalStructList<
Visual3D
>();
610
public struct Enumerator : IEnumerator<
Visual3D
>, IEnumerator
680
public
Visual3D
Current
System\Windows\UIElement.cs (6)
1463
Visual3D
parentAsVisual3D = parent as
Visual3D
;
1503
else if (oldParent is
Visual3D
)
1505
((
Visual3D
) oldParent).VisualAncestorChanged -= new AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit);
4280
Visual3D
v3DChild = child as
Visual3D
;
System\Windows\UIElement3D.cs (6)
165
Visual3D
parentAsVisual3D = parent as
Visual3D
;
205
else if (oldParent is
Visual3D
)
207
((
Visual3D
)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged_ForceInherit);
1372
internal static void InvalidateForceInheritPropertyOnChildren(
Visual3D
v, DependencyProperty property)
1422
((
Visual3D
)vChild).InvalidateForceInheritPropertyOnChildren(property);
PresentationFramework (44)
MS\Internal\Controls\InkCanvasInnerCanvas.cs (2)
262
System.Windows.Media.Media3D.
Visual3D
visual3D = hitTestResult.VisualHit as System.Windows.Media.Media3D.
Visual3D
;
MS\Internal\FrameworkObject.cs (4)
309
Visual3D
visual3D;
320
else if ((visual3D = fo.DO as
Visual3D
) != null)
416
Visual3D
visual3D;
427
else if ((visual3D = _do as
Visual3D
) != null)
System\Windows\BroadcastEventHelper.cs (4)
471
Visual3D
visual3D;
482
else if ((visual3D = d as
Visual3D
) != null)
695
Visual3D
v3D;
708
else if ((v3D = d as
Visual3D
) != null)
System\Windows\Controls\DataGridHelper.cs (1)
572
if (contextElement is Visual || contextElement is System.Windows.Media.Media3D.
Visual3D
)
System\Windows\Controls\PopupControlService.cs (5)
708
v = o as
Visual3D
;
714
(v is
Visual3D
&& ((
Visual3D
)v).IsDescendantOf(_currentToolTip)));
1083
v = o as
Visual3D
;
1125
nearestVisual = o as
Visual3D
;
System\Windows\Controls\ViewPort3D.cs (3)
233
Visual3D
visual3D = value as
Visual3D
;
237
throw new ArgumentException(SR.Format(SR.UnexpectedParameterType, value.GetType(), typeof(
Visual3D
)), "value");
System\Windows\DescendentsWalker.cs (2)
119
else if (d is
Visual3D
v3D)
159
private void WalkVisualChildren(
Visual3D
v )
System\windows\Documents\TextEditorMouse.cs (2)
783
if(hitTestResult.VisualHit is
Visual3D
) check = ((
Visual3D
)hitTestResult.VisualHit).IsDescendantOf(renderScope);
System\Windows\FrameworkElement.cs (6)
2491
else if (newParent is
Visual3D
)
2493
((
Visual3D
)newParent).VisualAncestorChanged += new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged);
2505
else if (oldParent is
Visual3D
)
2507
((
Visual3D
)oldParent).VisualAncestorChanged -= new Visual.AncestorChangedEventHandler(OnVisualAncestorChanged);
2960
if (((
Visual3D
)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
3148
if (((
Visual3D
)visualParent).CheckFlagsAnd(VisualFlags.IsLayoutIslandRoot))
System\Windows\FrameworkElementFactory.cs (3)
96
!typeof(
Visual3D
).IsAssignableFrom(value))
680
Visual3D
treeNodeVisual3D = null;
687
treeNodeVisual3D = treeNode as
Visual3D
;
System\Windows\Input\KeyboardNavigation.cs (8)
157
if (d is Visual || d is
Visual3D
)
1493
elementAsVisual = e as
Visual3D
;
1554
elementAsVisual = e as
Visual3D
;
1600
Visual3D
visual3DFocusedElement = focusedElement as
Visual3D
;
1667
elementAsVisual = e as
Visual3D
;
1732
elementAsVisual = e as
Visual3D
;
1759
if (e is Visual || e is
Visual3D
)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
830
case 734: t = () => typeof(
Visual3D
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11220
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)
2346
else if (throwIfNeither && !(d is System.Windows.Media.Media3D.
Visual3D
) )