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