73 references to SetBinding
Microsoft.VisualStudio.LanguageServices.CSharp (1)
SemanticSearch\SemanticSearchToolWindowImpl.cs (1)
209
image.
SetBinding
(CrispImage.GrayscaleProperty, new Binding(UIElement.IsEnabledProperty.Name)
PresentationFramework (48)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
588
marker.
SetBinding
(Path.StrokeProperty, markerStroke);
591
marker.
SetBinding
(Path.StrokeThicknessProperty, markerStrokeThickness);
System\Windows\Controls\DataGrid.cs (1)
1939
SetBinding
(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)
1133
fe.
SetBinding
(dp, binding);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1312
fe.
SetBinding
(dp, binding);
System\Windows\Controls\GridViewRowPresenter.cs (2)
318
cell.
SetBinding
(TextBlock.TextProperty, binding);
594
cell.
SetBinding
(TextBlock.TextProperty, binding);
System\Windows\Controls\HeaderedItemsControl.cs (1)
434
SetBinding
(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)
974
dayCell.
SetBinding
(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
1000
monthCell.
SetBinding
(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
98
elementContent.
SetBinding
(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\Primitives\Popup.cs (9)
917
popup.
SetBinding
(PlacementTargetProperty, binding);
929
popup.
SetBinding
(VerticalOffsetProperty, binding);
934
popup.
SetBinding
(HorizontalOffsetProperty, binding);
939
popup.
SetBinding
(PlacementRectangleProperty, binding);
944
popup.
SetBinding
(PlacementProperty, binding);
949
popup.
SetBinding
(StaysOpenProperty, binding);
954
popup.
SetBinding
(CustomPopupPlacementCallbackProperty, binding);
961
popup.
SetBinding
(TreatMousePlacementAsBottomProperty, binding);
968
popup.
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)
909
menuItem.
SetBinding
(MenuItem.CommandTargetProperty, binding);
System\Windows\Controls\Primitives\TickBar.cs (2)
681
SetBinding
(target, binding);
719
SetBinding
(ReservedSpaceProperty, binding);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
342
SetBinding
(OrientationProperty, binding);
System\Windows\Controls\Primitives\Track.cs (2)
700
SetBinding
(target, binding);
712
element.
SetBinding
(target, binding);
System\Windows\Controls\ScrollViewer.cs (1)
1344
SetBinding
(property, binding);
System\Windows\Controls\StickyNote.cs (4)
1503
Content.InnerControl.
SetBinding
(InkCanvas.EditingModeProperty, inkCanvasEditingMode);
1657
inkMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
1669
selectMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
1681
eraseMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
System\Windows\Documents\Adorner.cs (1)
219
adorner.
SetBinding
(FlowDirectionProperty, binding);
System\Windows\FrameworkElement.cs (1)
2780
return (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);
1119
ZoomComboBox.
SetBinding
(ZoomComboBox.ZoomProperty, bind);
1133
PageTextBox.
SetBinding
(PageTextBox.PageNumberProperty, bind);
System.Windows.Controls.Ribbon (18)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
345
addGalleryToQATItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
368
addToOrRemoveFromQATItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
379
qatPlacementItem.
SetBinding
(RibbonMenuItem.HeaderProperty, headerBinding);
383
qatPlacementItem.
SetBinding
(RibbonMenuItem.CommandProperty, commandBinding);
386
qatPlacementItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
456
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.IsCheckedProperty, isCheckedBinding);
459
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.CommandProperty, isMinimizedBinding);
461
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (3)
82
filterToggleButton.
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);
295
currentFilterItem.
SetBinding
(RibbonMenuItem.HeaderTemplateProperty, currentFilterTemplateBinding);
362
filterItem.
SetBinding
(RibbonMenuItem.IsCheckedProperty, isCheckedBinding);
368
filterItem.
SetBinding
(RibbonMenuItem.CommandParameterProperty, commandParameterBinding);
1500
dummyElement.
SetBinding
(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
278
this.
SetBinding
(IsPressedInternalProperty, binding);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
930
SetBinding
(ContentProperty, binding);