18 references to FindAncestor
PresentationFramework (13)
src\Framework\MS\Internal\Data\ObjectRef.cs (3)
343
case RelativeSourceMode.
FindAncestor
:
408
case RelativeSourceMode.
FindAncestor
:
439
return ( (_relativeSource.Mode == RelativeSourceMode.
FindAncestor
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
913
binding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(ContextMenu), 1);
src\Framework\System\Windows\Data\RelativeSource.cs (9)
59
_mode = RelativeSourceMode.
FindAncestor
;
92
if (_mode == RelativeSourceMode.
FindAncestor
&& (AncestorType == null))
176
Debug.Assert(_mode == RelativeSourceMode.
FindAncestor
);
180
if (_mode != RelativeSourceMode.
FindAncestor
)
200
return (_mode == RelativeSourceMode.
FindAncestor
);
214
Debug.Assert((!IsUninitialized) || (_mode == RelativeSourceMode.
FindAncestor
));
216
if (_mode != RelativeSourceMode.
FindAncestor
)
240
return (_mode == RelativeSourceMode.
FindAncestor
);
280
if (mode == RelativeSourceMode.
FindAncestor
)
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
84
showAllConditionsBinding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(FlowchartDesigner), 1);
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (1)
89
showAllConditionsBinding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(FlowchartDesigner), 1);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
196
readOnlyBinding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(DesignerView), 1);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\CategoryLayoutContainer.cs (1)
25
contentBinding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(CategoryLayoutContainer), 1);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
198
readOnlyBinding.RelativeSource = new RelativeSource(RelativeSourceMode.
FindAncestor
, typeof(DesignerView), 1);