73 references to SetBinding
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
209image.SetBinding(CrispImage.GrayscaleProperty, new Binding(UIElement.IsEnabledProperty.Name)
PresentationFramework (48)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
582marker.SetBinding(Path.StrokeProperty, markerStroke); 585marker.SetBinding(Path.StrokeThicknessProperty, markerStrokeThickness);
System\Windows\Controls\DataGrid.cs (1)
1936SetBinding(HorizontalScrollOffsetProperty, horizontalOffsetBinding);
System\Windows\Controls\DatePicker.cs (5)
1083_calendar.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty)); 1084_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty)); 1085_calendar.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty)); 1086_calendar.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty)); 1087_calendar.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
System\Windows\Controls\FlowDocumentReader.cs (1)
1128fe.SetBinding(dp, binding);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1309fe.SetBinding(dp, binding);
System\Windows\Controls\GridViewRowPresenter.cs (2)
314cell.SetBinding(TextBlock.TextProperty, binding); 590cell.SetBinding(TextBlock.TextProperty, binding);
System\Windows\Controls\HeaderedItemsControl.cs (1)
429SetBinding(ItemsSourceProperty, hTemplate.ItemsSource);
System\Windows\Controls\InkCanvas.cs (3)
640_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 2025_inkPresenter.SetBinding(InkPresenter.StrokesProperty, strokes); 2192_innerCanvas.SetBinding(Panel.BackgroundProperty, background);
System\Windows\Controls\PopupControlService.cs (1)
450_currentToolTip.SetBinding(ToolTip.ContentProperty, binding);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
969dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 995monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
93elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\Primitives\Popup.cs (9)
910popup.SetBinding(PlacementTargetProperty, binding); 922popup.SetBinding(VerticalOffsetProperty, binding); 927popup.SetBinding(HorizontalOffsetProperty, binding); 932popup.SetBinding(PlacementRectangleProperty, binding); 937popup.SetBinding(PlacementProperty, binding); 942popup.SetBinding(StaysOpenProperty, binding); 947popup.SetBinding(CustomPopupPlacementCallbackProperty, binding); 954popup.SetBinding(TreatMousePlacementAsBottomProperty, binding); 961popup.SetBinding(IsOpenProperty, binding);
System\Windows\Controls\Primitives\PopupRoot.cs (6)
253_adornerDecorator.SetBinding(WidthProperty, binding); 258_adornerDecorator.SetBinding(HeightProperty, binding); 263_adornerDecorator.SetBinding(MinWidthProperty, binding); 268_adornerDecorator.SetBinding(MinHeightProperty, binding); 273_adornerDecorator.SetBinding(MaxWidthProperty, binding); 278_adornerDecorator.SetBinding(MaxHeightProperty, binding);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
893menuItem.SetBinding(MenuItem.CommandTargetProperty, binding);
System\Windows\Controls\Primitives\TickBar.cs (2)
667SetBinding(target, binding); 705SetBinding(ReservedSpaceProperty, binding);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
333SetBinding(OrientationProperty, binding);
System\Windows\Controls\Primitives\Track.cs (2)
689SetBinding(target, binding); 701element.SetBinding(target, binding);
System\Windows\Controls\ScrollViewer.cs (1)
1336SetBinding(property, binding);
System\Windows\Controls\StickyNote.cs (4)
1487Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1641inkMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind); 1653selectMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind); 1665eraseMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind);
System\Windows\Documents\Adorner.cs (1)
216adorner.SetBinding(FlowDirectionProperty, binding);
System\Windows\FrameworkElement.cs (1)
2769return (BindingExpression)SetBinding(dp, new Binding(path));
PresentationUI (6)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
719_zoomComboBox.SetBinding(ContentControl.WidthProperty, bind); 723_zoomComboBox.SetBinding(ContentControl.HeightProperty, bind); 771_pageTextBox.SetBinding(ContentControl.WidthProperty, bind); 775_pageTextBox.SetBinding(ContentControl.HeightProperty, bind); 1112ZoomComboBox.SetBinding(ZoomComboBox.ZoomProperty, bind); 1126PageTextBox.SetBinding(PageTextBox.PageNumberProperty, bind);
System.Windows.Controls.Ribbon (18)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
343addGalleryToQATItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 366addToOrRemoveFromQATItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 377qatPlacementItem.SetBinding(RibbonMenuItem.HeaderProperty, headerBinding); 381qatPlacementItem.SetBinding(RibbonMenuItem.CommandProperty, commandBinding); 384qatPlacementItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 454minimizeTheRibbonItem.SetBinding(RibbonMenuItem.IsCheckedProperty, isCheckedBinding); 457minimizeTheRibbonItem.SetBinding(RibbonMenuItem.CommandProperty, isMinimizedBinding); 459minimizeTheRibbonItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (3)
80filterToggleButton.SetBinding(RibbonToggleButton.ContentProperty, currentFilterBinding); 82_currentFilterItem.SetBinding(RibbonMenuItem.DataContextProperty, currentFilterBinding); 84_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
115_filterMenuButton.SetBinding(RibbonMenuButton.ItemsSourceProperty, itemsSourceBinding); 293currentFilterItem.SetBinding(RibbonMenuItem.HeaderTemplateProperty, currentFilterTemplateBinding); 360filterItem.SetBinding(RibbonMenuItem.IsCheckedProperty, isCheckedBinding); 366filterItem.SetBinding(RibbonMenuItem.CommandParameterProperty, commandParameterBinding); 1498dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
275this.SetBinding(IsPressedInternalProperty, binding);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
927SetBinding(ContentProperty, binding);