13 references to FindAncestor
PresentationFramework (13)
MS\Internal\Data\ObjectRef.cs (3)
337
case RelativeSourceMode.
FindAncestor
:
398
case RelativeSourceMode.
FindAncestor
:
429
return ((_relativeSource.Mode == RelativeSourceMode.
FindAncestor
System\Windows\Controls\Primitives\ScrollBar.cs (1)
908
binding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (9)
55
_mode = RelativeSourceMode.
FindAncestor
;
88
if (_mode == RelativeSourceMode.
FindAncestor
&& (AncestorType == null))
172
Debug.Assert(_mode == RelativeSourceMode.
FindAncestor
);
176
if (_mode != RelativeSourceMode.
FindAncestor
)
196
return (_mode == RelativeSourceMode.
FindAncestor
);
210
Debug.Assert((!IsUninitialized) || (_mode == RelativeSourceMode.
FindAncestor
));
212
if (_mode != RelativeSourceMode.
FindAncestor
)
236
return (_mode == RelativeSourceMode.
FindAncestor
);
276
if (mode == RelativeSourceMode.
FindAncestor
)