16 writes to BindingContext
Microsoft.Maui.Controls (15)
BindableLayout\BindableLayout.cs (2)
559 bindable.BindingContext = item; 575 view.BindingContext = item;
ContentPage\ContentPage.cs (1)
128 v.BindingContext = BindingContext;
ListView\ListView.cs (2)
689 storage.BindingContext = dataObject; 696 storage.BindingContext = dataObject;
MultiBinding.cs (1)
167 _proxyObject.BindingContext = context;
PlatformBindingHelpers.cs (1)
134 proxy.BindingContext = bindingContext;
TemplatedItemsList.cs (7)
624 content.BindingContext = item; 650 content.BindingContext = this; 654 content.BindingContext = ListProxy.ProxiedEnumerable; 745 groupProxy.BindingContext = item; 750 groupProxy.HeaderContent.BindingContext = groupProxy.ItemsSource; 760 groupProxy.HeaderContent.BindingContext = groupProxy; 1223 item.BindingContext = null;
View\View.cs (1)
321 v.BindingContext = BindingContext;
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
340 pin.BindingContext = newItem;
101 references to BindingContext
Microsoft.Maui.Controls (98)
BindableObject.cs (9)
46 /// <summary>Bindable property for <see cref="BindingContext"/>.</summary> 48 BindableProperty.Create(nameof(BindingContext), typeof(object), typeof(BindableObject), default(object), 72 /// Occurs when the value of the <see cref="BindingContext"/> property changes. 335 binding.Apply(BindingContext, this, targetProperty, false, specificity); 373 /// Applies all the current bindings to <see cref="BindingContext" />. 397 SetInheritedBindingContext(buttonBehavior, BindingContext); 400 SetInheritedBindingContext(searchHandler, BindingContext); 716 binding.Apply(BindingContext, this, context.Property, fromBindingContextChanged, specificity); 779 currentbinding?.Apply(BindingContext, this, property, false, context.Bindings.GetClearedSpecificity());
BindableObjectExtensions.cs (1)
40 var bc = self.BindingContext;
BindingExpression.cs (2)
521 if (object.ReferenceEquals(currentSource, elem.BindingContext)) 620 OnPropertyChanged(sender, new PropertyChangedEventArgs(nameof(BindableObject.BindingContext)));
Border\Border.cs (1)
115 SetInheritedBindingContext(stroke, BindingContext);
Button\Button.cs (1)
380 SetInheritedBindingContext(image, BindingContext);
Cells\Cell.cs (2)
188 SetInheritedBindingContext(_contextActions[i], BindingContext); 253 SetInheritedBindingContext(_contextActions[i], BindingContext);
Cells\ImageCell.cs (2)
36 SetInheritedBindingContext(ImageSource, BindingContext); 51 SetInheritedBindingContext(newvalue, BindingContext);
ContentPage\ContentPage.cs (3)
53 SetInheritedBindingContext(content, BindingContext); 67 SetInheritedBindingContext(content, BindingContext); 128 v.BindingContext = BindingContext;
ContentView\ContentView.cs (2)
30 SetInheritedBindingContext(content, BindingContext); 40 SetInheritedBindingContext(content, BindingContext);
Element\Element.cs (3)
420 object context = value?.BindingContext; 583 SetInheritedBindingContext(item, BindingContext); 783 SetInheritedBindingContext(bindableObject, BindingContext);
FlyoutPage\FlyoutPage.cs (2)
389 var debugText = DebuggerDisplayHelpers.GetDebugText(nameof(Detail), Detail, "FlyoutPage", Flyout, nameof(BindingContext), BindingContext);
FormattedString.cs (1)
26 SetInheritedBindingContext(Spans[i], BindingContext);
GradientBrush.cs (1)
45 SetInheritedBindingContext(gradientStop, BindingContext);
ImageElement.cs (1)
105 BindableObject.SetInheritedBindingContext(image.Source, visualElement?.BindingContext);
Items\ItemsView.cs (2)
124 SetInheritedBindingContext(boNew, bindable.BindingContext); 229 SetInheritedBindingContext(bo, BindingContext);
Label\Label.cs (1)
130 SetInheritedBindingContext(FormattedText, this.BindingContext);
Layout\Grid.cs (1)
359 var bindingContext = BindingContext;
LegacyLayouts\Grid.cs (1)
271 object bindingContext = BindingContext;
ListView\ListView.cs (11)
145 object bc = BindingContext; 336 => ItemAppearing?.Invoke(this, new ItemVisibilityEventArgs(cell.BindingContext, TemplatedItems.GetGlobalIndexOfItem(cell?.BindingContext))); 341 => ItemDisappearing?.Invoke(this, new ItemVisibilityEventArgs(cell.BindingContext, TemplatedItems.GetGlobalIndexOfItem(cell?.BindingContext))); 524 SetValueCore(SelectedItemProperty, cell?.BindingContext, SetValueFlags.ClearOneWayBindings | SetValueFlags.ClearDynamicResource | (changed ? SetValueFlags.RaiseOnEqual : 0), SetValuePrivateFlags.Default, SetterSpecificity.FromHandler); 528 ItemTapped?.Invoke(this, new ItemTappedEventArgs(ItemsSource.Cast<object>().ElementAt(groupIndex), cell?.BindingContext, TemplatedItems.GetGlobalIndexOfItem(cell?.BindingContext))); 550 SetValueCore(SelectedItemProperty, cell?.BindingContext, SetValueFlags.ClearOneWayBindings | SetValueFlags.ClearDynamicResource | (changed ? SetValueFlags.RaiseOnEqual : 0), SetValuePrivateFlags.Default, SetterSpecificity.FromHandler); 567 new ItemTappedEventArgs(tappedGroup, cell.BindingContext, 568 TemplatedItems.GetGlobalIndexOfItem(cell?.BindingContext)));
Page\Page.cs (5)
494 SetInheritedBindingContext(toolbarItem, BindingContext); 499 SetInheritedBindingContext(menubarItem, BindingContext); 503 SetInheritedBindingContext(TitleView, BindingContext); 947 var debugText = DebuggerDisplayHelpers.GetDebugText(nameof(BindingContext), BindingContext, nameof(Title), Title);
RelativeBindingSource.cs (5)
140 resolvedSource = currentElement.RealParent?.BindingContext; 169 element.BindingContext != null && 171 AncestorType!.IsAssignableFrom(element.BindingContext.GetType()); 178 if (!object.ReferenceEquals(lastPotentialBctx, element.BindingContext)) 180 lastPotentialBctx = element.BindingContext;
Shapes\Shape.cs (4)
202 SetInheritedBindingContext(fill, BindingContext); 237 SetInheritedBindingContext(stroke, BindingContext); 368 SetInheritedBindingContext(Fill, BindingContext); 371 SetInheritedBindingContext(Stroke, BindingContext);
Shell\BaseShellItem.cs (2)
536 var bo = g.BindingContext as BindableObject; 542 if (g.BindingContext is BaseShellItem bsi)
Shell\MenuShellItem.cs (1)
60 SetInheritedBindingContext(MenuItem, BindingContext);
Shell\Shell.cs (5)
43 SetInheritedBindingContext(newHandlerProperties, bindable.BindingContext); 99 SetInheritedBindingContext(newHandler, bindable.BindingContext); 1492 SetInheritedBindingContext(FlyoutHeaderView, BindingContext); 1495 SetInheritedBindingContext(FlyoutFooterView, BindingContext); 1498 SetInheritedBindingContext(FlyoutContentView, BindingContext);
Shell\ShellContent.cs (3)
372 if (content is BindableObject bindable && bindable.BindingContext != null && content != bindable.BindingContext) 373 ApplyQueryAttributes(bindable.BindingContext, query, oldQuery);
Shell\ShellSection.cs (1)
1036 SetInheritedBindingContext(shellContent, BindingContext);
SwipeView\SwipeView.cs (4)
127 SetInheritedBindingContext(LeftItems, BindingContext); 128 SetInheritedBindingContext(RightItems, BindingContext); 129 SetInheritedBindingContext(TopItems, BindingContext); 130 SetInheritedBindingContext(BottomItems, BindingContext);
TableView\TableSection.cs (2)
142 object bc = BindingContext; 152 object bc = BindingContext;
TableView\TableView.cs (2)
83 SetInheritedBindingContext(_tableModel.Root, BindingContext); 123 SetInheritedBindingContext(Root, BindingContext);
TemplatedItemsList.cs (4)
475 if (ReferenceEquals(children.BindingContext, group) || group == null) 479 if (ReferenceEquals(children[i].BindingContext, item)) 707 return BindingContext; 908 _groupedItems.Insert(insertIndex + i, til.BindingContext, til);
TemplateUtilities.cs (1)
74 BindableObject.SetInheritedBindingContext(newElement, bindable.BindingContext);
TypedBinding.cs (1)
415 if (object.ReferenceEquals(currentSource, elem.BindingContext))
View\View.cs (1)
321 v.BindingContext = BindingContext;
VisualElement\VisualElement.cs (7)
323 SetInheritedBindingContext(background, BindingContext); 1547 SetInheritedBindingContext(stateTrigger, BindingContext); 2145 SetInheritedBindingContext(shadow, BindingContext); 2176 SetInheritedBindingContext(Background, BindingContext); 2182 SetInheritedBindingContext(Shadow, BindingContext); 2415 var debugText = DebuggerDisplayHelpers.GetDebugText(nameof(BindingContext), BindingContext, nameof(Bounds), Bounds);
WebView\WebView.cs (3)
33 SetInheritedBindingContext(source, webview.BindingContext); 210 SetInheritedBindingContext(source, BindingContext); 221 SetInheritedBindingContext(source, BindingContext);
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
658 && propertyName.LocalName == nameof(BindableObject.BindingContext);
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
353 if (pin.BindingContext?.Equals(itemToRemove) == true)
Microsoft.Maui.Controls.Xaml (1)
XamlServiceProvider.cs (1)
326 && name.LocalName == nameof(BindableObject.BindingContext))