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)
588marker.SetBinding(Path.StrokeProperty, markerStroke); 591marker.SetBinding(Path.StrokeThicknessProperty, markerStrokeThickness);
System\Windows\Controls\DataGrid.cs (1)
1939SetBinding(HorizontalScrollOffsetProperty, horizontalOffsetBinding);
System\Windows\Controls\DatePicker.cs (5)
1087_calendar.SetBinding(Calendar.ForegroundProperty, GetDatePickerBinding(DatePicker.ForegroundProperty)); 1088_calendar.SetBinding(Calendar.StyleProperty, GetDatePickerBinding(DatePicker.CalendarStyleProperty)); 1089_calendar.SetBinding(Calendar.IsTodayHighlightedProperty, GetDatePickerBinding(DatePicker.IsTodayHighlightedProperty)); 1090_calendar.SetBinding(Calendar.FirstDayOfWeekProperty, GetDatePickerBinding(DatePicker.FirstDayOfWeekProperty)); 1091_calendar.SetBinding(Calendar.FlowDirectionProperty, GetDatePickerBinding(DatePicker.FlowDirectionProperty));
System\Windows\Controls\FlowDocumentReader.cs (1)
1133fe.SetBinding(dp, binding);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1312fe.SetBinding(dp, binding);
System\Windows\Controls\GridViewRowPresenter.cs (2)
318cell.SetBinding(TextBlock.TextProperty, binding); 594cell.SetBinding(TextBlock.TextProperty, binding);
System\Windows\Controls\HeaderedItemsControl.cs (1)
434SetBinding(ItemsSourceProperty, hTemplate.ItemsSource);
System\Windows\Controls\InkCanvas.cs (3)
652_selectionAdorner.SetBinding(UIElement.VisibilityProperty, activeEditingModeBinding); 2037_inkPresenter.SetBinding(InkPresenter.StrokesProperty, strokes); 2204_innerCanvas.SetBinding(Panel.BackgroundProperty, background);
System\Windows\Controls\PopupControlService.cs (1)
460_currentToolTip.SetBinding(ToolTip.ContentProperty, binding);
System\Windows\Controls\Primitives\CalendarItem.cs (2)
974dayCell.SetBinding(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle")); 1000monthCell.SetBinding(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
98elementContent.SetBinding(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\Primitives\Popup.cs (9)
917popup.SetBinding(PlacementTargetProperty, binding); 929popup.SetBinding(VerticalOffsetProperty, binding); 934popup.SetBinding(HorizontalOffsetProperty, binding); 939popup.SetBinding(PlacementRectangleProperty, binding); 944popup.SetBinding(PlacementProperty, binding); 949popup.SetBinding(StaysOpenProperty, binding); 954popup.SetBinding(CustomPopupPlacementCallbackProperty, binding); 961popup.SetBinding(TreatMousePlacementAsBottomProperty, binding); 968popup.SetBinding(IsOpenProperty, binding);
System\Windows\Controls\Primitives\PopupRoot.cs (6)
262_adornerDecorator.SetBinding(WidthProperty, binding); 267_adornerDecorator.SetBinding(HeightProperty, binding); 272_adornerDecorator.SetBinding(MinWidthProperty, binding); 277_adornerDecorator.SetBinding(MinHeightProperty, binding); 282_adornerDecorator.SetBinding(MaxWidthProperty, binding); 287_adornerDecorator.SetBinding(MaxHeightProperty, binding);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
909menuItem.SetBinding(MenuItem.CommandTargetProperty, binding);
System\Windows\Controls\Primitives\TickBar.cs (2)
681SetBinding(target, binding); 719SetBinding(ReservedSpaceProperty, binding);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
342SetBinding(OrientationProperty, binding);
System\Windows\Controls\Primitives\Track.cs (2)
700SetBinding(target, binding); 712element.SetBinding(target, binding);
System\Windows\Controls\ScrollViewer.cs (1)
1344SetBinding(property, binding);
System\Windows\Controls\StickyNote.cs (4)
1503Content.InnerControl.SetBinding(InkCanvas.EditingModeProperty, inkCanvasEditingMode); 1657inkMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind); 1669selectMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind); 1681eraseMenuItem.SetBinding(MenuItem.IsCheckedProperty, checkedBind);
System\Windows\Documents\Adorner.cs (1)
219adorner.SetBinding(FlowDirectionProperty, binding);
System\Windows\FrameworkElement.cs (1)
2780return (BindingExpression)SetBinding(dp, new Binding(path));
PresentationUI (6)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (6)
726_zoomComboBox.SetBinding(ContentControl.WidthProperty, bind); 730_zoomComboBox.SetBinding(ContentControl.HeightProperty, bind); 778_pageTextBox.SetBinding(ContentControl.WidthProperty, bind); 782_pageTextBox.SetBinding(ContentControl.HeightProperty, bind); 1119ZoomComboBox.SetBinding(ZoomComboBox.ZoomProperty, bind); 1133PageTextBox.SetBinding(PageTextBox.PageNumberProperty, bind);
System.Windows.Controls.Ribbon (18)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
345addGalleryToQATItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 368addToOrRemoveFromQATItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 379qatPlacementItem.SetBinding(RibbonMenuItem.HeaderProperty, headerBinding); 383qatPlacementItem.SetBinding(RibbonMenuItem.CommandProperty, commandBinding); 386qatPlacementItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding); 456minimizeTheRibbonItem.SetBinding(RibbonMenuItem.IsCheckedProperty, isCheckedBinding); 459minimizeTheRibbonItem.SetBinding(RibbonMenuItem.CommandProperty, isMinimizedBinding); 461minimizeTheRibbonItem.SetBinding(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (3)
82filterToggleButton.SetBinding(RibbonToggleButton.ContentProperty, currentFilterBinding); 84_currentFilterItem.SetBinding(RibbonMenuItem.DataContextProperty, currentFilterBinding); 86_currentFilterItem.SetBinding(RibbonMenuItem.StyleProperty, currentFilterStyleBinding);
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (5)
117_filterMenuButton.SetBinding(RibbonMenuButton.ItemsSourceProperty, itemsSourceBinding); 295currentFilterItem.SetBinding(RibbonMenuItem.HeaderTemplateProperty, currentFilterTemplateBinding); 362filterItem.SetBinding(RibbonMenuItem.IsCheckedProperty, isCheckedBinding); 368filterItem.SetBinding(RibbonMenuItem.CommandParameterProperty, commandParameterBinding); 1500dummyElement.SetBinding(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
278this.SetBinding(IsPressedInternalProperty, binding);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
930SetBinding(ContentProperty, binding);