1 instantiation of RelativeSourceMode
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11611bamlType.DefaultConstructor = delegate() { return new System.Windows.Data.RelativeSourceMode(); };
42 references to RelativeSourceMode
PresentationFramework (41)
MS\Internal\Data\ObjectRef.cs (10)
331case RelativeSourceMode.FindAncestor: 382case RelativeSourceMode.Self: 385case RelativeSourceMode.TemplatedParent: 389case RelativeSourceMode.PreviousData: 392case RelativeSourceMode.FindAncestor: 417get { return (_relativeSource.Mode == RelativeSourceMode.PreviousData); } 423return ((_relativeSource.Mode == RelativeSourceMode.FindAncestor 424|| (_relativeSource.Mode == RelativeSourceMode.PreviousData))); 433case RelativeSourceMode.TemplatedParent: 434case RelativeSourceMode.PreviousData:
System\Windows\Controls\Primitives\ScrollBar.cs (1)
892binding.RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(ContextMenu), 1);
System\Windows\Data\RelativeSource.cs (23)
54_mode = RelativeSourceMode.FindAncestor; 59public RelativeSource(RelativeSourceMode mode) 66public RelativeSource(RelativeSourceMode mode, Type ancestorType, int ancestorLevel) 87if (_mode == RelativeSourceMode.FindAncestor && (AncestorType == null)) 103s_previousData = new RelativeSource(RelativeSourceMode.PreviousData); 117s_templatedParent = new RelativeSource(RelativeSourceMode.TemplatedParent); 131s_self = new RelativeSource(RelativeSourceMode.Self); 144public RelativeSourceMode Mode 171Debug.Assert(_mode == RelativeSourceMode.FindAncestor); 175if (_mode != RelativeSourceMode.FindAncestor) 195return (_mode == RelativeSourceMode.FindAncestor); 209Debug.Assert((!IsUninitialized) || (_mode == RelativeSourceMode.FindAncestor)); 211if (_mode != RelativeSourceMode.FindAncestor) 235return (_mode == RelativeSourceMode.FindAncestor); 252if (_mode == RelativeSourceMode.PreviousData) 254if (_mode == RelativeSourceMode.Self) 256if (_mode == RelativeSourceMode.TemplatedParent) 271void InitializeMode(RelativeSourceMode mode) 275if (mode == RelativeSourceMode.FindAncestor) 281else if (mode == RelativeSourceMode.PreviousData 282|| mode == RelativeSourceMode.Self 283|| mode == RelativeSourceMode.TemplatedParent) 297private RelativeSourceMode _mode;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (6)
8296new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode) }, 8300(System.Windows.Data.RelativeSourceMode)arguments[0]); 8303new List<Type>() { typeof(System.Windows.Data.RelativeSourceMode), typeof(System.Type), typeof(System.Int32) }, 8307(System.Windows.Data.RelativeSourceMode)arguments[0], 11609typeof(System.Windows.Data.RelativeSourceMode), 11612bamlType.TypeConverterType = typeof(System.Windows.Data.RelativeSourceMode);
System\Windows\Markup\BamlRecordReader.cs (1)
1515instance = new System.Windows.Data.RelativeSource((System.Windows.Data.RelativeSourceMode)paramArray[0]);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
365Binding commandParameterBinding = new Binding("DataContext") { RelativeSource = new RelativeSource(RelativeSourceMode.Self) };