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