10 instantiations of RelativeSource
PresentationFramework (9)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
908
binding.RelativeSource = new
RelativeSource
(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (3)
104
s_previousData = new
RelativeSource
(RelativeSourceMode.PreviousData);
118
s_templatedParent = new
RelativeSource
(RelativeSourceMode.TemplatedParent);
132
s_self = new
RelativeSource
(RelativeSourceMode.Self);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (3)
8296
bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.
RelativeSource
(); };
8301
return new System.Windows.Data.
RelativeSource
(
8308
return new System.Windows.Data.
RelativeSource
(
System\Windows\Markup\BamlRecordReader.cs (1)
1524
instance = new System.Windows.Data.
RelativeSource
((System.Windows.Data.RelativeSourceMode)paramArray[0]);
System\Windows\Markup\KnownTypes.cs (1)
1498
case KnownElements.RelativeSource: o = new System.Windows.Data.
RelativeSource
(); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
367
Binding commandParameterBinding = new Binding("DataContext") { RelativeSource = new
RelativeSource
(RelativeSourceMode.Self) };
30 references to RelativeSource
PresentationFramework (30)
MS\Internal\Data\ObjectRef.cs (2)
319
internal RelativeObjectRef(
RelativeSource
relativeSource)
618
RelativeSource
_relativeSource;
System\Windows\Controls\Primitives\TickBar.cs (1)
679
binding.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
340
binding.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Controls\Primitives\Track.cs (1)
698
binding.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Controls\ScrollViewer.cs (3)
1342
binding.RelativeSource =
RelativeSource
.TemplatedParent;
2690
bindingHorizontalOffset.RelativeSource =
RelativeSource
.TemplatedParent;
2693
bindingVerticalOffset.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Controls\StickyNote.cs (3)
1654
checkedBind.RelativeSource =
RelativeSource
.TemplatedParent;
1666
checkedBind.RelativeSource =
RelativeSource
.TemplatedParent;
1678
checkedBind.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Data\Binding.cs (2)
563
public
RelativeSource
RelativeSource
565
get { return (
RelativeSource
)GetValue(Feature.RelativeSource, null); }
System\Windows\Data\RelativeSource.cs (7)
45
[MarkupExtensionReturnType(typeof(
RelativeSource
))]
98
public static
RelativeSource
PreviousData
112
public static
RelativeSource
TemplatedParent
126
public static
RelativeSource
Self
302
private static
RelativeSource
s_previousData;
303
private static
RelativeSource
s_templatedParent;
304
private static
RelativeSource
s_self;
System\Windows\FrameworkTemplate.cs (1)
829
binding.RelativeSource =
RelativeSource
.TemplatedParent;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
612
case 516: t = () => typeof(
RelativeSource
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
6634
typeof(System.Windows.Data.
RelativeSource
), // type
6638
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).RelativeSource = (System.Windows.Data.
RelativeSource
)value; };
6791
Type type = typeof(System.Windows.Data.
RelativeSource
);
6793
this.GetXamlType(typeof(System.Windows.Data.
RelativeSource
)), // DeclaringType
6801
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.
RelativeSource
)target).AncestorType = (System.Type)value; };
6802
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.
RelativeSource
)target).AncestorType; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8294
typeof(System.Windows.Data.
RelativeSource
),
System\Windows\Markup\KnownTypes.cs (1)
6070
case KnownElements.RelativeSource: t = typeof(System.Windows.Data.
RelativeSource
); break;