17 instantiations of RelativeSource
PresentationFramework (9)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
913binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
src\Framework\System\Windows\Data\RelativeSource.cs (3)
108s_previousData = new RelativeSource(RelativeSourceMode.PreviousData); 122s_templatedParent = new RelativeSource(RelativeSourceMode.TemplatedParent); 136s_self = new RelativeSource(RelativeSourceMode.Self);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (3)
8292bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.RelativeSource(); }; 8297return new System.Windows.Data.RelativeSource( 8304return new System.Windows.Data.RelativeSource(
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
1549instance = new System.Windows.Data.RelativeSource((System.Windows.Data.RelativeSourceMode)paramArray[0]);
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
1499case KnownElements.RelativeSource: o = new System.Windows.Data.RelativeSource(); break;
System.Activities.Core.Presentation (3)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
84showAllConditionsBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(FlowchartDesigner), 1);
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (1)
89showAllConditionsBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(FlowchartDesigner), 1);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (1)
196readOnlyBinding.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)
25contentBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(CategoryLayoutContainer), 1);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (3)
831RelativeSource = new RelativeSource(RelativeSourceMode.Self), 837RelativeSource = new RelativeSource(RelativeSourceMode.Self), 868var rowBinding = new Binding() { Mode = BindingMode.OneTime, RelativeSource = new RelativeSource(RelativeSourceMode.Self) };
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
198readOnlyBinding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(DesignerView), 1);
34 references to RelativeSource
PresentationFramework (30)
src\Framework\MS\Internal\Data\ObjectRef.cs (2)
324internal RelativeObjectRef(RelativeSource relativeSource) 628RelativeSource _relativeSource;
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
680binding.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
341binding.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Controls\Primitives\Track.cs (1)
700binding.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
1370binding.RelativeSource = RelativeSource.TemplatedParent; 2730bindingHorizontalOffset.RelativeSource = RelativeSource.TemplatedParent; 2733bindingVerticalOffset.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Controls\StickyNote.cs (3)
1664checkedBind.RelativeSource = RelativeSource.TemplatedParent; 1676checkedBind.RelativeSource = RelativeSource.TemplatedParent; 1688checkedBind.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Data\Binding.cs (2)
568public RelativeSource RelativeSource 570get { return (RelativeSource)GetValue(Feature.RelativeSource, null); }
src\Framework\System\Windows\Data\RelativeSource.cs (7)
48[MarkupExtensionReturnType(typeof(RelativeSource))] 102public static RelativeSource PreviousData 116public static RelativeSource TemplatedParent 130public static RelativeSource Self 306private static RelativeSource s_previousData; 307private static RelativeSource s_templatedParent; 308private static RelativeSource s_self;
src\Framework\System\Windows\FrameworkTemplate.cs (1)
833binding.RelativeSource = RelativeSource.TemplatedParent;
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
608case 516: t = () => typeof(RelativeSource); break;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (6)
6592typeof(System.Windows.Data.RelativeSource), // type 6596bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.Binding)target).RelativeSource = (System.Windows.Data.RelativeSource)value; }; 6749Type type = typeof(System.Windows.Data.RelativeSource); 6751this.GetXamlType(typeof(System.Windows.Data.RelativeSource)), // DeclaringType 6759bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Data.RelativeSource)target).AncestorType = (System.Type)value; }; 6760bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Data.RelativeSource)target).AncestorType; };
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8290typeof(System.Windows.Data.RelativeSource),
src\Framework\System\Windows\Markup\KnownTypes.cs (1)
6060case KnownElements.RelativeSource: t = typeof(System.Windows.Data.RelativeSource); break;
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
744binding.Bindings.Add(new Binding() { Path = new PropertyPath("Tag.Timestamp"), Mode = BindingMode.OneWay, RelativeSource = RelativeSource.Self });
System.Activities.Presentation\System\Activities\Presentation\Toolbox\TreeViewContainerStyleSelector.cs (3)
48toolItemBinding.RelativeSource = RelativeSource.Self; 65automationIdBinding.RelativeSource = RelativeSource.Self; 110automationIdBinding.RelativeSource = RelativeSource.Self;