13 references to FindAncestor
PresentationFramework (13)
MS\Internal\Data\ObjectRef.cs (3)
331
case RelativeSourceMode.
FindAncestor
:
392
case RelativeSourceMode.
FindAncestor
:
423
return ((_relativeSource.Mode == RelativeSourceMode.
FindAncestor
System\Windows\Controls\Primitives\ScrollBar.cs (1)
892
binding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (9)
54
_mode = RelativeSourceMode.
FindAncestor
;
87
if (_mode == RelativeSourceMode.
FindAncestor
&& (AncestorType == null))
171
Debug.Assert(_mode == RelativeSourceMode.
FindAncestor
);
175
if (_mode != RelativeSourceMode.
FindAncestor
)
195
return (_mode == RelativeSourceMode.
FindAncestor
);
209
Debug.Assert((!IsUninitialized) || (_mode == RelativeSourceMode.
FindAncestor
));
211
if (_mode != RelativeSourceMode.
FindAncestor
)
235
return (_mode == RelativeSourceMode.
FindAncestor
);
275
if (mode == RelativeSourceMode.
FindAncestor
)