1 instantiation of RelativeSourceMode
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11609
bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.
RelativeSourceMode
(); };
49 references to RelativeSourceMode
PresentationFramework (41)
src\Framework\MS\Internal\Data\ObjectRef.cs (10)
343
case
RelativeSourceMode
.FindAncestor:
398
case
RelativeSourceMode
.Self:
401
case
RelativeSourceMode
.TemplatedParent:
405
case
RelativeSourceMode
.PreviousData:
408
case
RelativeSourceMode
.FindAncestor:
433
get { return (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData); }
439
return ( (_relativeSource.Mode ==
RelativeSourceMode
.FindAncestor
440
|| (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData)));
449
case
RelativeSourceMode
.TemplatedParent:
450
case
RelativeSourceMode
.PreviousData:
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 (23)
59
_mode =
RelativeSourceMode
.FindAncestor;
64
public RelativeSource(
RelativeSourceMode
mode)
71
public RelativeSource(
RelativeSourceMode
mode, Type ancestorType, int ancestorLevel)
92
if (_mode ==
RelativeSourceMode
.FindAncestor && (AncestorType == null))
108
s_previousData = new RelativeSource(
RelativeSourceMode
.PreviousData);
122
s_templatedParent = new RelativeSource(
RelativeSourceMode
.TemplatedParent);
136
s_self = new RelativeSource(
RelativeSourceMode
.Self);
149
public
RelativeSourceMode
Mode
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);
257
if (_mode ==
RelativeSourceMode
.PreviousData)
259
if (_mode ==
RelativeSourceMode
.Self)
261
if (_mode ==
RelativeSourceMode
.TemplatedParent)
276
void InitializeMode(
RelativeSourceMode
mode)
280
if (mode ==
RelativeSourceMode
.FindAncestor)
286
else if (mode ==
RelativeSourceMode
.PreviousData
287
|| mode ==
RelativeSourceMode
.Self
288
|| mode ==
RelativeSourceMode
.TemplatedParent)
302
private
RelativeSourceMode
_mode;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (6)
8294
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
) },
8298
(System.Windows.Data.
RelativeSourceMode
)arguments[0]);
8301
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
), typeof(System.Type), typeof(System.Int32) },
8305
(System.Windows.Data.
RelativeSourceMode
)arguments[0],
11607
typeof(System.Windows.Data.
RelativeSourceMode
),
11610
bamlType.TypeConverterType = typeof(System.Windows.Data.
RelativeSourceMode
);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
1549
instance = new System.Windows.Data.RelativeSource((System.Windows.Data.
RelativeSourceMode
)paramArray[0]);
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 (5)
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\View\DataGridHelper.cs (3)
831
RelativeSource = new RelativeSource(
RelativeSourceMode
.Self),
837
RelativeSource = new RelativeSource(
RelativeSourceMode
.Self),
868
var rowBinding = new Binding() { Mode = BindingMode.OneTime, RelativeSource = new RelativeSource(
RelativeSourceMode
.Self) };
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
198
readOnlyBinding.RelativeSource = new RelativeSource(
RelativeSourceMode
.FindAncestor, typeof(DesignerView), 1);