10 instantiations of RelativeSource
PresentationFramework (9)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
892binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (3)
103s_previousData = new RelativeSource(RelativeSourceMode.PreviousData); 117s_templatedParent = new RelativeSource(RelativeSourceMode.TemplatedParent); 131s_self = new RelativeSource(RelativeSourceMode.Self);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (3)
8294bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.RelativeSource(); }; 8299return new System.Windows.Data.RelativeSource( 8306return new System.Windows.Data.RelativeSource(
System\Windows\Markup\BamlRecordReader.cs (1)
1515instance = new System.Windows.Data.RelativeSource((System.Windows.Data.RelativeSourceMode)paramArray[0]);
System\Windows\Markup\KnownTypes.cs (1)
1498case KnownElements.RelativeSource: o = new System.Windows.Data.RelativeSource(); break;
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
365Binding commandParameterBinding = new Binding("DataContext") { RelativeSource = new RelativeSource(RelativeSourceMode.Self) };
30 references to RelativeSource
PresentationFramework (30)
MS\Internal\Data\ObjectRef.cs (2)
313internal RelativeObjectRef(RelativeSource relativeSource) 612RelativeSource _relativeSource;
System\Windows\Controls\Primitives\TickBar.cs (1)
665binding.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
331binding.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Controls\Primitives\Track.cs (1)
687binding.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Controls\ScrollViewer.cs (3)
1334binding.RelativeSource = RelativeSource.TemplatedParent; 2682bindingHorizontalOffset.RelativeSource = RelativeSource.TemplatedParent; 2685bindingVerticalOffset.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Controls\StickyNote.cs (3)
1638checkedBind.RelativeSource = RelativeSource.TemplatedParent; 1650checkedBind.RelativeSource = RelativeSource.TemplatedParent; 1662checkedBind.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Data\Binding.cs (2)
555public RelativeSource RelativeSource 557get { return (RelativeSource)GetValue(Feature.RelativeSource, null); }
System\Windows\Data\RelativeSource.cs (7)
44[MarkupExtensionReturnType(typeof(RelativeSource))] 97public static RelativeSource PreviousData 111public static RelativeSource TemplatedParent 125public static RelativeSource Self 301private static RelativeSource s_previousData; 302private static RelativeSource s_templatedParent; 303private static RelativeSource s_self;
System\Windows\FrameworkTemplate.cs (1)
820binding.RelativeSource = RelativeSource.TemplatedParent;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
610case 516: t = () => typeof(RelativeSource); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
6632typeof(System.Windows.Data.RelativeSource), // type 6636bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).RelativeSource = (System.Windows.Data.RelativeSource)value; }; 6789Type type = typeof(System.Windows.Data.RelativeSource); 6791this.GetXamlType(typeof(System.Windows.Data.RelativeSource)), // DeclaringType 6799bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.RelativeSource)target).AncestorType = (System.Type)value; }; 6800bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.RelativeSource)target).AncestorType; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8292typeof(System.Windows.Data.RelativeSource),
System\Windows\Markup\KnownTypes.cs (1)
6070case KnownElements.RelativeSource: t = typeof(System.Windows.Data.RelativeSource); break;