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)
39DataContext = _viewModel; 55DataContext = null;
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
69DataContext = viewModel;
CommonControls\MemberSelection.xaml.cs (1)
29DataContext = ViewModel;
CommonControls\NewTypeDestinationSelection.xaml.cs (2)
27control.DataContext = a.NewValue; 46DataContext = ViewModel;
DocumentOutline\DocumentOutlineView.xaml.cs (1)
59DataContext = _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)
29DataContext = ViewModel;
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
43DataContext = viewModel;
GenerateType\GenerateTypeDialog.xaml.cs (1)
43DataContext = viewModel;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (2)
90DataContext = viewModel; 130ContextMenu.DataContext = viewModel;
MoveStaticMembers\MoveStaticMembersDialog.xaml.cs (1)
30DataContext = viewModel;
MoveStaticMembers\StaticMemberSelection.xaml.cs (1)
26DataContext = ViewModel;
MoveToNamespace\MoveToNamespaceDialog.xaml.cs (1)
35DataContext = viewModel;
PickMembers\PickMembersDialog.xaml.cs (1)
42DataContext = viewModel;
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
35DataContext = 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)
53control.DataContext = Validation.GetErrors(adornedElement);
System\Windows\Controls\ContentPresenter.cs (3)
117DataContext = null; // this presents a uniform view: CP always has local DC 246ctrl.DataContext = e.NewValue; 865this.DataContext = Content;
System\Windows\Controls\DataGrid.cs (2)
6939target.DataContext = _item; 6975target.DataContext = _item;
System\Windows\Controls\GridViewRowPresenter.cs (2)
592cell.DataContext = Content; 657cell.DataContext = Content;
System\Windows\Controls\Primitives\CalendarItem.cs (7)
1031daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1035daytitle.DataContext = shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length]; 1064childButton.DataContext = dateToAdd; 1070childButton.DataContext = null; 1255childButton.DataContext = day; 1280childButton.DataContext = null; 1299childButton.DataContext = day;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\VenusMargin.cs (1)
30DataContext = _viewModel,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
615DummyElement.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)
287&& 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)
497ItemsControl.EqualsEx(child.DataContext, parent.DataContext))
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
155if (owningButton != null && owningButton.DataContext is DateTime) 157date = (DateTime)owningButton.DataContext; 390object dataContext = (child as FrameworkElement).DataContext;
System\Windows\Controls\Calendar.cs (4)
861if (b.DataContext is DateTime) 863if (DateTimeHelper.CompareDays((DateTime)b.DataContext, day) == 0) 918if (b.DataContext is DateTime) 920DateTime d = (DateTime)b.DataContext;
System\Windows\Controls\DataGrid.cs (1)
6891object item = (_cell != null) ? _cell.DataContext : _item;
System\Windows\Controls\DataGridCell.cs (1)
1122return DataContext;
System\Windows\Controls\DataGridRow.cs (2)
1091if (grid != null && row.DataContext != null) 1096DataGridItemAutomationPeer rowItemPeer = gridPeer.FindOrCreateItemAutomationPeer(row.DataContext) as DataGridItemAutomationPeer;
System\Windows\Controls\Frame.cs (1)
662JournalEntry je = journalEntryUIElem.DataContext as JournalEntry;
System\Windows\Controls\Primitives\CalendarItem.cs (19)
382if (b != null && b.DataContext is DateTime) 384if (DateTimeHelper.CompareDays(date, (DateTime)b.DataContext) == 0) 400if (b != null && b.DataContext is DateTime) 404if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.DataContext) == 0) 411if (date.Year == ((DateTime)b.DataContext).Year) 499child.DataContext is DateTime && 500((DateTime)child.DataContext).Year == selectedYear.Year) 510child.DataContext is DateTime && 511((DateTime)child.DataContext).Year == selectedYear.Year) 570if (!(b.DataContext is DateTime)) 578DateTime clickedDate = (DateTime)b.DataContext; 664if (this.Owner == null || !(b.DataContext is DateTime)) 683DateTime selectedDate = (DateTime)b.DataContext; 771if (this.Owner == null || !(b.DataContext is DateTime)) 776DateTime selectedDate = (DateTime)b.DataContext; 822if (!(b.DataContext is DateTime)) 827FinishSelection((DateTime)b.DataContext); 1169if (childButton.DataContext is DateTime) 1171DateTime date = (DateTime)childButton.DataContext;
System\Windows\Controls\Primitives\Selector.cs (1)
1109if (DataContext == BindingExpressionBase.DisconnectedItem)
System\Windows\Navigation\NavigationWindow.cs (1)
1079JournalEntry je = journalEntryUIElem.DataContext as JournalEntry;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
918if (DataContext != null && AssemblyHelper.IsXmlNode(DataContext))