1 instantiation of RelativeSourceMode
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11611
bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.
RelativeSourceMode
(); };
42 references to RelativeSourceMode
PresentationFramework (41)
MS\Internal\Data\ObjectRef.cs (10)
331
case
RelativeSourceMode
.FindAncestor:
382
case
RelativeSourceMode
.Self:
385
case
RelativeSourceMode
.TemplatedParent:
389
case
RelativeSourceMode
.PreviousData:
392
case
RelativeSourceMode
.FindAncestor:
417
get { return (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData); }
423
return ((_relativeSource.Mode ==
RelativeSourceMode
.FindAncestor
424
|| (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData)));
433
case
RelativeSourceMode
.TemplatedParent:
434
case
RelativeSourceMode
.PreviousData:
System\Windows\Controls\Primitives\ScrollBar.cs (1)
892
binding.RelativeSource = new RelativeSource(
RelativeSourceMode
.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (23)
54
_mode =
RelativeSourceMode
.FindAncestor;
59
public RelativeSource(
RelativeSourceMode
mode)
66
public RelativeSource(
RelativeSourceMode
mode, Type ancestorType, int ancestorLevel)
87
if (_mode ==
RelativeSourceMode
.FindAncestor && (AncestorType == null))
103
s_previousData = new RelativeSource(
RelativeSourceMode
.PreviousData);
117
s_templatedParent = new RelativeSource(
RelativeSourceMode
.TemplatedParent);
131
s_self = new RelativeSource(
RelativeSourceMode
.Self);
144
public
RelativeSourceMode
Mode
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);
252
if (_mode ==
RelativeSourceMode
.PreviousData)
254
if (_mode ==
RelativeSourceMode
.Self)
256
if (_mode ==
RelativeSourceMode
.TemplatedParent)
271
void InitializeMode(
RelativeSourceMode
mode)
275
if (mode ==
RelativeSourceMode
.FindAncestor)
281
else if (mode ==
RelativeSourceMode
.PreviousData
282
|| mode ==
RelativeSourceMode
.Self
283
|| mode ==
RelativeSourceMode
.TemplatedParent)
297
private
RelativeSourceMode
_mode;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (6)
8296
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
) },
8300
(System.Windows.Data.
RelativeSourceMode
)arguments[0]);
8303
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
), typeof(System.Type), typeof(System.Int32) },
8307
(System.Windows.Data.
RelativeSourceMode
)arguments[0],
11609
typeof(System.Windows.Data.
RelativeSourceMode
),
11612
bamlType.TypeConverterType = typeof(System.Windows.Data.
RelativeSourceMode
);
System\Windows\Markup\BamlRecordReader.cs (1)
1515
instance = new System.Windows.Data.RelativeSource((System.Windows.Data.
RelativeSourceMode
)paramArray[0]);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
365
Binding commandParameterBinding = new Binding("DataContext") { RelativeSource = new RelativeSource(
RelativeSourceMode
.Self) };