29 writes to BindingContext
Microsoft.Maui.Controls (28)
BindableLayout\BindableLayout.cs (5)
401 child.BindingContext = null; 529 child.BindingContext = null; 547 child.BindingContext = item; 553 child.BindingContext = null; 562 view.BindingContext = item;
Compatibility\Handlers\Shell\iOS\ShellSearchResultsRenderer.cs (2)
128 view.BindingContext = context; 134 cell.View.BindingContext = context;
Compatibility\Handlers\Shell\iOS\UIContainerCell.cs (1)
99 View.BindingContext = value;
ContentPage\ContentPage.cs (1)
125 v.BindingContext = BindingContext;
Handlers\Items\iOS\TemplatedCell.cs (4)
83 view.BindingContext = null; 164 oldElement.BindingContext = null; 179 view.BindingContext = bindingContext; 197 oldElement.BindingContext = bindingContext;
Handlers\Items\iOS\TemplateHelpers.cs (1)
46 element.BindingContext = view;
Handlers\Items2\iOS\TemplatedCell2.cs (2)
67 view.BindingContext = null; 140 virtualView.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;
102 references to BindingContext
Microsoft.Maui.Controls (97)
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)
378 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)
50 SetInheritedBindingContext(content, BindingContext); 64 SetInheritedBindingContext(content, BindingContext); 125 v.BindingContext = BindingContext;
ContentView\ContentView.cs (2)
27 SetInheritedBindingContext(content, BindingContext); 37 SetInheritedBindingContext(content, BindingContext);
Element\Element.cs (3)
420 object context = value?.BindingContext; 583 SetInheritedBindingContext(item, BindingContext); 783 SetInheritedBindingContext(bindableObject, BindingContext);
FormattedString.cs (1)
26 SetInheritedBindingContext(Spans[i], BindingContext);
GradientBrush.cs (1)
45 SetInheritedBindingContext(gradientStop, BindingContext);
Handlers\Items\iOS\CarouselViewController.cs (1)
617 var item = itemView.BindingContext;
Handlers\Items\iOS\ItemsViewController.cs (1)
829 (templatedCell.PlatformHandler?.VirtualView as View)?.BindingContext is object bindingContext)
Handlers\Items2\iOS\CarouselViewController2.cs (1)
569 var item = itemView.BindingContext;
Handlers\Items2\iOS\ItemsViewController2.cs (1)
511 (TemplatedCell2.PlatformHandler?.VirtualView as View)?.BindingContext is object bindingContext)
Handlers\Items2\iOS\TemplatedCell2.cs (1)
118 BindVirtualView(virtualView, itemsView.BindingContext, itemsView, true);
ImageElement.cs (1)
105 BindableObject.SetInheritedBindingContext(image.Source, visualElement?.BindingContext);
Items\ItemsView.cs (2)
121 SetInheritedBindingContext(boNew, bindable.BindingContext); 226 SetInheritedBindingContext(bo, BindingContext);
Label\Label.cs (1)
127 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 (3)
491 SetInheritedBindingContext(toolbarItem, BindingContext); 496 SetInheritedBindingContext(menubarItem, BindingContext); 500 SetInheritedBindingContext(TitleView, BindingContext);
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)
1025 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 (5)
319 SetInheritedBindingContext(background, BindingContext); 1543 SetInheritedBindingContext(stateTrigger, BindingContext); 2148 SetInheritedBindingContext(shadow, BindingContext); 2179 SetInheritedBindingContext(Background, BindingContext); 2185 SetInheritedBindingContext(Shadow, BindingContext);
WebView\WebView.cs (3)
30 SetInheritedBindingContext(source, webview.BindingContext); 207 SetInheritedBindingContext(source, BindingContext); 218 SetInheritedBindingContext(source, BindingContext);
Microsoft.Maui.Controls.Build.Tasks (1)
SetPropertiesVisitor.cs (1)
590 && propertyName.LocalName == nameof(BindableObject.BindingContext);
Microsoft.Maui.Controls.Compatibility (2)
Tizen\NativeViewWrapper.cs (1)
32 NativeView.SetBindingContext(BindingContext);
Tizen\Platform.cs (1)
244 BindableObject.SetInheritedBindingContext(Page, base.BindingContext);
Microsoft.Maui.Controls.Maps (1)
Map.cs (1)
353 if (pin.BindingContext?.Equals(itemToRemove) == true)
Microsoft.Maui.Controls.Xaml (1)
XamlServiceProvider.cs (1)
322 && name.LocalName == nameof(BindableObject.BindingContext))