55 writes to DataContext
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
43DataContext = _viewModel = viewModel;
InlineRename\UI\Adornment\RenameUserInputTextBox.xaml.cs (1)
19DataContext = viewModel;
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
58this.DataContext = model;
InlineRename\UI\SmartRename\SmartRenameStatusControl.xaml.cs (1)
16this.DataContext = viewModel;
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (1)
33DataContext = viewModel.SmartRenameViewModel;
Microsoft.VisualStudio.LanguageServices (33)
ChangeSignature\AddParameterDialog.xaml.cs (2)
40DataContext = _viewModel; 56DataContext = null;
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
70DataContext = viewModel;
CommonControls\MemberSelection.xaml.cs (1)
29DataContext = ViewModel;
CommonControls\NewTypeDestinationSelection.xaml.cs (2)
27control.DataContext = a.NewValue; 46DataContext = ViewModel;
DocumentOutline\DocumentOutlineView.xaml.cs (1)
60DataContext = _viewModel;
EditorConfigSettings\Analyzers\View\SeverityControl.xaml.cs (1)
20DataContext = viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.xaml.cs (1)
25DataContext = viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.xaml.cs (1)
21DataContext = viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.xaml.cs (1)
19DataContext = viewModel;
EditorConfigSettings\Common\EnumPropertyView.xaml.cs (1)
19DataContext = model;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.xaml.cs (1)
18DataContext = viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.xaml.cs (1)
21DataContext = viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.xaml.cs (1)
21DataContext = viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.xaml.cs (1)
18DataContext = viewModel;
EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.xaml.cs (1)
25DataContext = viewModel;
EditorConfigSettings\SettingsEditorControl.xaml.cs (1)
50DataContext = this;
EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.xaml.cs (1)
18DataContext = viewModel;
ExtractClass\ExtractClassDialog.xaml.cs (1)
30DataContext = ViewModel;
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
44DataContext = viewModel;
GenerateType\GenerateTypeDialog.xaml.cs (1)
44DataContext = viewModel;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (2)
90DataContext = viewModel; 130ContextMenu.DataContext = viewModel;
MoveStaticMembers\MoveStaticMembersDialog.xaml.cs (1)
31DataContext = viewModel;
MoveStaticMembers\StaticMemberSelection.xaml.cs (1)
26DataContext = ViewModel;
MoveToNamespace\MoveToNamespaceDialog.xaml.cs (1)
36DataContext = viewModel;
PickMembers\PickMembersDialog.xaml.cs (1)
43DataContext = viewModel;
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
36DataContext = pullMemberUpViewModel;
PullMemberUp\WarningDialog\PullMemberUpWarningDialog.xaml.cs (1)
25DataContext = viewModel;
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
20DataContext = ViewModel = viewModel;
StackTraceExplorer\StackTraceExplorerRoot.xaml.cs (1)
24DataContext = ViewModel = viewModel;
ValueTracking\ValueTrackingTree.xaml.cs (1)
19DataContext = _viewModel = viewModel;
PresentationFramework (15)
MS\Internal\Controls\TemplatedAdorner.cs (1)
46control.DataContext = Validation.GetErrors(adornedElement);
System\Windows\Controls\ContentPresenter.cs (3)
108DataContext = null; // this presents a uniform view: CP always has local DC 237ctrl.DataContext = e.NewValue; 856this.DataContext = Content;
System\Windows\Controls\DataGrid.cs (2)
6936target.DataContext = _item; 6972target.DataContext = _item;
System\Windows\Controls\GridViewRowPresenter.cs (2)
588cell.DataContext = Content; 653cell.DataContext = Content;
System\Windows\Controls\Primitives\CalendarItem.cs (7)
1026daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1030daytitle.DataContext = shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length]; 1059childButton.DataContext = dateToAdd; 1065childButton.DataContext = null; 1250childButton.DataContext = day; 1275childButton.DataContext = null; 1294childButton.DataContext = day;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\VenusMargin.cs (1)
30DataContext = _viewModel,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
612DummyElement.DataContext = item;
44 references to DataContext
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Rename\RenameViewModelTests.vb (2)
600Dim model = DirectCast(dashboard.DataContext, RenameDashboardViewModel) 643Dim model = DirectCast(flyout.DataContext, RenameFlyoutViewModel)
Microsoft.VisualStudio.LanguageServices (5)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
288&& e.OriginalSource is TreeViewItem { DataContext: DocumentSymbolDataViewModel symbolModel } item
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
50if (e.OriginalSource is MenuItem { DataContext: TargetMenuItemViewModel viewModel })
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (3)
101var viewModel = (InheritanceMarginGlyphViewModel)DataContext; 121var viewModel = (InheritanceMarginGlyphViewModel)DataContext; 176if (e.OriginalSource is ContextMenu { DataContext: InheritanceMarginGlyphViewModel inheritanceMarginViewModel }
PresentationFramework (35)
MS\Internal\Data\ObjectRef.cs (2)
491ItemsControl.EqualsEx(child.DataContext, parent.DataContext))
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
149if (owningButton != null && owningButton.DataContext is DateTime) 151date = (DateTime)owningButton.DataContext; 384object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Controls\Calendar.cs (4)
857if (b.DataContext is DateTime) 859if (DateTimeHelper.CompareDays((DateTime)b.DataContext, day) == 0) 914if (b.DataContext is DateTime) 916DateTime d = (DateTime)b.DataContext;
System\Windows\Controls\DataGrid.cs (1)
6888object item = (_cell != null) ? _cell.DataContext : _item;
System\Windows\Controls\DataGridCell.cs (1)
1115return DataContext;
System\Windows\Controls\DataGridRow.cs (2)
1087if (grid != null && row.DataContext != null) 1092DataGridItemAutomationPeer rowItemPeer = gridPeer.FindOrCreateItemAutomationPeer(row.DataContext) as DataGridItemAutomationPeer;
System\Windows\Controls\Frame.cs (1)
650JournalEntry je = journalEntryUIElem.DataContext as JournalEntry;
System\Windows\Controls\Primitives\CalendarItem.cs (19)
377if (b != null && b.DataContext is DateTime) 379if (DateTimeHelper.CompareDays(date, (DateTime)b.DataContext) == 0) 395if (b != null && b.DataContext is DateTime) 399if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.DataContext) == 0) 406if (date.Year == ((DateTime)b.DataContext).Year) 494child.DataContext is DateTime && 495((DateTime)child.DataContext).Year == selectedYear.Year) 505child.DataContext is DateTime && 506((DateTime)child.DataContext).Year == selectedYear.Year) 565if (!(b.DataContext is DateTime)) 573DateTime clickedDate = (DateTime)b.DataContext; 659if (this.Owner == null || !(b.DataContext is DateTime)) 678DateTime selectedDate = (DateTime)b.DataContext; 766if (this.Owner == null || !(b.DataContext is DateTime)) 771DateTime selectedDate = (DateTime)b.DataContext; 817if (!(b.DataContext is DateTime)) 822FinishSelection((DateTime)b.DataContext); 1164if (childButton.DataContext is DateTime) 1166DateTime date = (DateTime)childButton.DataContext;
System\Windows\Controls\Primitives\Selector.cs (1)
1100if (DataContext == BindingExpressionBase.DisconnectedItem)
System\Windows\Navigation\NavigationWindow.cs (1)
1063JournalEntry je = journalEntryUIElem.DataContext as JournalEntry;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
915if (DataContext != null && AssemblyHelper.IsXmlNode(DataContext))