32 references to RelativeBindingSourceMode
Microsoft.Maui.Controls (20)
Binding.cs (1)
89 if ((value as RelativeBindingSource)?.Mode == RelativeBindingSourceMode.TemplatedParent)
ContentConverter.cs (2)
69 var source = new RelativeBindingSource(RelativeBindingSourceMode.FindAncestor, typeof(ITextElement)); 88 var source = new RelativeBindingSource(RelativeBindingSourceMode.FindAncestor, typeof(IFontElement));
RelativeBindingSource.cs (17)
17 RelativeBindingSourceMode mode, 21 if ((mode == RelativeBindingSourceMode.FindAncestor || 22 mode == RelativeBindingSourceMode.FindAncestorBindingContext) && 26 $"{nameof(RelativeBindingSourceMode.FindAncestor)} and " + 27 $"{nameof(RelativeBindingSourceMode.FindAncestorBindingContext)} " + 37 public RelativeBindingSourceMode Mode 59 return _self ?? (_self = new RelativeBindingSource(RelativeBindingSourceMode.Self)); 68 return _templatedParent ?? (_templatedParent = new RelativeBindingSource(RelativeBindingSourceMode.TemplatedParent)); 91 case RelativeBindingSourceMode.Self: 95 case RelativeBindingSourceMode.TemplatedParent: 99 case RelativeBindingSourceMode.FindAncestor: 100 case RelativeBindingSourceMode.FindAncestorBindingContext: 129 chain, includeBindingContext: Mode == RelativeBindingSourceMode.FindAncestorBindingContext, rootIsSource: false); 137 if (Mode == RelativeBindingSourceMode.FindAncestor) 143 chain, includeBindingContext: Mode == RelativeBindingSourceMode.FindAncestorBindingContext, rootIsSource: true); 165 Mode == RelativeBindingSourceMode.FindAncestor && 170 Mode == RelativeBindingSourceMode.FindAncestorBindingContext &&
Microsoft.Maui.Controls.Xaml (12)
MarkupExtensions\RelativeSourceExtension.cs (12)
10 public RelativeBindingSourceMode Mode 32 RelativeBindingSourceMode actualMode; 34 if (Mode != RelativeBindingSourceMode.FindAncestor && 35 Mode != RelativeBindingSourceMode.FindAncestorBindingContext) 46 ? RelativeBindingSourceMode.FindAncestor 47 : RelativeBindingSourceMode.FindAncestorBindingContext; 56 else if (Mode == RelativeBindingSourceMode.FindAncestor || 57 Mode == RelativeBindingSourceMode.FindAncestorBindingContext) 60 $"{nameof(RelativeBindingSourceMode.FindAncestor)} and " + 61 $"{nameof(RelativeBindingSourceMode.FindAncestorBindingContext)} " + 64 else if (Mode == RelativeBindingSourceMode.Self) 68 else if (Mode == RelativeBindingSourceMode.TemplatedParent)