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)
582
marker.
SetBinding
(Path.StrokeProperty, markerStroke);
585
marker.
SetBinding
(Path.StrokeThicknessProperty, markerStrokeThickness);
System\Windows\Controls\DataGrid.cs (1)
1936
SetBinding
(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)
1128
fe.
SetBinding
(dp, binding);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
1309
fe.
SetBinding
(dp, binding);
System\Windows\Controls\GridViewRowPresenter.cs (2)
314
cell.
SetBinding
(TextBlock.TextProperty, binding);
590
cell.
SetBinding
(TextBlock.TextProperty, binding);
System\Windows\Controls\HeaderedItemsControl.cs (1)
429
SetBinding
(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)
969
dayCell.
SetBinding
(CalendarDayButton.StyleProperty, GetOwnerBinding("CalendarDayButtonStyle"));
995
monthCell.
SetBinding
(CalendarButton.StyleProperty, GetOwnerBinding("CalendarButtonStyle"));
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
93
elementContent.
SetBinding
(ContentControl.ContentProperty, watermarkBinding);
System\Windows\Controls\Primitives\Popup.cs (9)
910
popup.
SetBinding
(PlacementTargetProperty, binding);
922
popup.
SetBinding
(VerticalOffsetProperty, binding);
927
popup.
SetBinding
(HorizontalOffsetProperty, binding);
932
popup.
SetBinding
(PlacementRectangleProperty, binding);
937
popup.
SetBinding
(PlacementProperty, binding);
942
popup.
SetBinding
(StaysOpenProperty, binding);
947
popup.
SetBinding
(CustomPopupPlacementCallbackProperty, binding);
954
popup.
SetBinding
(TreatMousePlacementAsBottomProperty, binding);
961
popup.
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)
893
menuItem.
SetBinding
(MenuItem.CommandTargetProperty, binding);
System\Windows\Controls\Primitives\TickBar.cs (2)
667
SetBinding
(target, binding);
705
SetBinding
(ReservedSpaceProperty, binding);
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
333
SetBinding
(OrientationProperty, binding);
System\Windows\Controls\Primitives\Track.cs (2)
689
SetBinding
(target, binding);
701
element.
SetBinding
(target, binding);
System\Windows\Controls\ScrollViewer.cs (1)
1336
SetBinding
(property, binding);
System\Windows\Controls\StickyNote.cs (4)
1487
Content.InnerControl.
SetBinding
(InkCanvas.EditingModeProperty, inkCanvasEditingMode);
1641
inkMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
1653
selectMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
1665
eraseMenuItem.
SetBinding
(MenuItem.IsCheckedProperty, checkedBind);
System\Windows\Documents\Adorner.cs (1)
216
adorner.
SetBinding
(FlowDirectionProperty, binding);
System\Windows\FrameworkElement.cs (1)
2769
return (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);
1112
ZoomComboBox.
SetBinding
(ZoomComboBox.ZoomProperty, bind);
1126
PageTextBox.
SetBinding
(PageTextBox.PageNumberProperty, bind);
System.Windows.Controls.Ribbon (18)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (8)
343
addGalleryToQATItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
366
addToOrRemoveFromQATItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
377
qatPlacementItem.
SetBinding
(RibbonMenuItem.HeaderProperty, headerBinding);
381
qatPlacementItem.
SetBinding
(RibbonMenuItem.CommandProperty, commandBinding);
384
qatPlacementItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
454
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.IsCheckedProperty, isCheckedBinding);
457
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.CommandProperty, isMinimizedBinding);
459
minimizeTheRibbonItem.
SetBinding
(RibbonMenuItem.CommandTargetProperty, placementTargetBinding);
Microsoft\Windows\Controls\Ribbon\RibbonFilterMenuButton.cs (3)
80
filterToggleButton.
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);
293
currentFilterItem.
SetBinding
(RibbonMenuItem.HeaderTemplateProperty, currentFilterTemplateBinding);
360
filterItem.
SetBinding
(RibbonMenuItem.IsCheckedProperty, isCheckedBinding);
366
filterItem.
SetBinding
(RibbonMenuItem.CommandParameterProperty, commandParameterBinding);
1498
dummyElement.
SetBinding
(ContentControl.ContentProperty, itemBinding);
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
275
this.
SetBinding
(IsPressedInternalProperty, binding);
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
927
SetBinding
(ContentProperty, binding);