1 instantiation of RelativeSourceMode
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11613
bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.
RelativeSourceMode
(); };
42 references to RelativeSourceMode
PresentationFramework (41)
MS\Internal\Data\ObjectRef.cs (10)
337
case
RelativeSourceMode
.FindAncestor:
388
case
RelativeSourceMode
.Self:
391
case
RelativeSourceMode
.TemplatedParent:
395
case
RelativeSourceMode
.PreviousData:
398
case
RelativeSourceMode
.FindAncestor:
423
get { return (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData); }
429
return ((_relativeSource.Mode ==
RelativeSourceMode
.FindAncestor
430
|| (_relativeSource.Mode ==
RelativeSourceMode
.PreviousData)));
439
case
RelativeSourceMode
.TemplatedParent:
440
case
RelativeSourceMode
.PreviousData:
System\Windows\Controls\Primitives\ScrollBar.cs (1)
908
binding.RelativeSource = new RelativeSource(
RelativeSourceMode
.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (23)
55
_mode =
RelativeSourceMode
.FindAncestor;
60
public RelativeSource(
RelativeSourceMode
mode)
67
public RelativeSource(
RelativeSourceMode
mode, Type ancestorType, int ancestorLevel)
88
if (_mode ==
RelativeSourceMode
.FindAncestor && (AncestorType == null))
104
s_previousData = new RelativeSource(
RelativeSourceMode
.PreviousData);
118
s_templatedParent = new RelativeSource(
RelativeSourceMode
.TemplatedParent);
132
s_self = new RelativeSource(
RelativeSourceMode
.Self);
145
public
RelativeSourceMode
Mode
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);
253
if (_mode ==
RelativeSourceMode
.PreviousData)
255
if (_mode ==
RelativeSourceMode
.Self)
257
if (_mode ==
RelativeSourceMode
.TemplatedParent)
272
void InitializeMode(
RelativeSourceMode
mode)
276
if (mode ==
RelativeSourceMode
.FindAncestor)
282
else if (mode ==
RelativeSourceMode
.PreviousData
283
|| mode ==
RelativeSourceMode
.Self
284
|| mode ==
RelativeSourceMode
.TemplatedParent)
298
private
RelativeSourceMode
_mode;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (6)
8298
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
) },
8302
(System.Windows.Data.
RelativeSourceMode
)arguments[0]);
8305
new List<Type>() { typeof(System.Windows.Data.
RelativeSourceMode
), typeof(System.Type), typeof(System.Int32) },
8309
(System.Windows.Data.
RelativeSourceMode
)arguments[0],
11611
typeof(System.Windows.Data.
RelativeSourceMode
),
11614
bamlType.TypeConverterType = typeof(System.Windows.Data.
RelativeSourceMode
);
System\Windows\Markup\BamlRecordReader.cs (1)
1524
instance = new System.Windows.Data.RelativeSource((System.Windows.Data.
RelativeSourceMode
)paramArray[0]);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
367
Binding commandParameterBinding = new Binding("DataContext") { RelativeSource = new RelativeSource(
RelativeSourceMode
.Self) };