55 writes to DataContext
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (1)
43
DataContext
= _viewModel = viewModel;
InlineRename\UI\Adornment\RenameUserInputTextBox.xaml.cs (1)
19
DataContext
= viewModel;
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (1)
58
this.
DataContext
= model;
InlineRename\UI\SmartRename\SmartRenameStatusControl.xaml.cs (1)
16
this.
DataContext
= viewModel;
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (1)
33
DataContext
= viewModel.SmartRenameViewModel;
Microsoft.VisualStudio.LanguageServices (33)
ChangeSignature\AddParameterDialog.xaml.cs (2)
39
DataContext
= _viewModel;
55
DataContext
= null;
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
69
DataContext
= viewModel;
CommonControls\MemberSelection.xaml.cs (1)
29
DataContext
= ViewModel;
CommonControls\NewTypeDestinationSelection.xaml.cs (2)
27
control.
DataContext
= a.NewValue;
46
DataContext
= ViewModel;
DocumentOutline\DocumentOutlineView.xaml.cs (1)
59
DataContext
= _viewModel;
EditorConfigSettings\Analyzers\View\SeverityControl.xaml.cs (1)
20
DataContext
= viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleSettingsView.xaml.cs (1)
25
DataContext
= viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleSeverityControl.xaml.cs (1)
21
DataContext
= viewModel;
EditorConfigSettings\CodeStyle\View\CodeStyleValueControl.xaml.cs (1)
19
DataContext
= viewModel;
EditorConfigSettings\Common\EnumPropertyView.xaml.cs (1)
19
DataContext
= model;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesLocationControl.xaml.cs (1)
18
DataContext
= viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesSeverityControl.xaml.cs (1)
21
DataContext
= viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.xaml.cs (1)
21
DataContext
= viewModel;
EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesTypeControl.xaml.cs (1)
18
DataContext
= viewModel;
EditorConfigSettings\NamingStyle\View\NamingStyleSettingsView.xaml.cs (1)
25
DataContext
= viewModel;
EditorConfigSettings\SettingsEditorControl.xaml.cs (1)
50
DataContext
= this;
EditorConfigSettings\Whitespace\View\WhitespaceBoolSettingView.xaml.cs (1)
18
DataContext
= viewModel;
ExtractClass\ExtractClassDialog.xaml.cs (1)
29
DataContext
= ViewModel;
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
43
DataContext
= viewModel;
GenerateType\GenerateTypeDialog.xaml.cs (1)
43
DataContext
= viewModel;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (2)
90
DataContext
= viewModel;
130
ContextMenu.
DataContext
= viewModel;
MoveStaticMembers\MoveStaticMembersDialog.xaml.cs (1)
30
DataContext
= viewModel;
MoveStaticMembers\StaticMemberSelection.xaml.cs (1)
26
DataContext
= ViewModel;
MoveToNamespace\MoveToNamespaceDialog.xaml.cs (1)
35
DataContext
= viewModel;
PickMembers\PickMembersDialog.xaml.cs (1)
42
DataContext
= viewModel;
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
35
DataContext
= pullMemberUpViewModel;
PullMemberUp\WarningDialog\PullMemberUpWarningDialog.xaml.cs (1)
25
DataContext
= viewModel;
StackTraceExplorer\StackTraceExplorer.xaml.cs (1)
20
DataContext
= ViewModel = viewModel;
StackTraceExplorer\StackTraceExplorerRoot.xaml.cs (1)
24
DataContext
= ViewModel = viewModel;
ValueTracking\ValueTrackingTree.xaml.cs (1)
19
DataContext
= _viewModel = viewModel;
PresentationFramework (15)
MS\Internal\Controls\TemplatedAdorner.cs (1)
53
control.
DataContext
= Validation.GetErrors(adornedElement);
System\Windows\Controls\ContentPresenter.cs (3)
117
DataContext
= null; // this presents a uniform view: CP always has local DC
246
ctrl.
DataContext
= e.NewValue;
865
this.
DataContext
= Content;
System\Windows\Controls\DataGrid.cs (2)
6939
target.
DataContext
= _item;
6975
target.
DataContext
= _item;
System\Windows\Controls\GridViewRowPresenter.cs (2)
592
cell.
DataContext
= Content;
657
cell.
DataContext
= Content;
System\Windows\Controls\Primitives\CalendarItem.cs (7)
1031
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length];
1035
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length];
1064
childButton.
DataContext
= dateToAdd;
1070
childButton.
DataContext
= null;
1255
childButton.
DataContext
= day;
1280
childButton.
DataContext
= null;
1299
childButton.
DataContext
= day;
Roslyn.VisualStudio.DiagnosticsWindow (1)
VenusMargin\VenusMargin.cs (1)
30
DataContext
= _viewModel,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
615
DummyElement.
DataContext
= item;
44 references to DataContext
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Rename\RenameViewModelTests.vb (2)
600
Dim model = DirectCast(dashboard.
DataContext
, RenameDashboardViewModel)
643
Dim 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)
50
if (e.OriginalSource is MenuItem {
DataContext
: TargetMenuItemViewModel viewModel })
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (3)
101
var viewModel = (InheritanceMarginGlyphViewModel)
DataContext
;
121
var viewModel = (InheritanceMarginGlyphViewModel)
DataContext
;
176
if (e.OriginalSource is ContextMenu {
DataContext
: InheritanceMarginGlyphViewModel inheritanceMarginViewModel }
PresentationFramework (35)
MS\Internal\Data\ObjectRef.cs (2)
497
ItemsControl.EqualsEx(child.
DataContext
, parent.
DataContext
))
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
155
if (owningButton != null && owningButton.
DataContext
is DateTime)
157
date = (DateTime)owningButton.
DataContext
;
390
object dataContext = (child as FrameworkElement).
DataContext
;
System\Windows\Controls\Calendar.cs (4)
861
if (b.
DataContext
is DateTime)
863
if (DateTimeHelper.CompareDays((DateTime)b.
DataContext
, day) == 0)
918
if (b.
DataContext
is DateTime)
920
DateTime d = (DateTime)b.
DataContext
;
System\Windows\Controls\DataGrid.cs (1)
6891
object item = (_cell != null) ? _cell.
DataContext
: _item;
System\Windows\Controls\DataGridCell.cs (1)
1122
return
DataContext
;
System\Windows\Controls\DataGridRow.cs (2)
1091
if (grid != null && row.
DataContext
!= null)
1096
DataGridItemAutomationPeer rowItemPeer = gridPeer.FindOrCreateItemAutomationPeer(row.
DataContext
) as DataGridItemAutomationPeer;
System\Windows\Controls\Frame.cs (1)
662
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
System\Windows\Controls\Primitives\CalendarItem.cs (19)
382
if (b != null && b.
DataContext
is DateTime)
384
if (DateTimeHelper.CompareDays(date, (DateTime)b.
DataContext
) == 0)
400
if (b != null && b.
DataContext
is DateTime)
404
if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.
DataContext
) == 0)
411
if (date.Year == ((DateTime)b.
DataContext
).Year)
499
child.
DataContext
is DateTime &&
500
((DateTime)child.
DataContext
).Year == selectedYear.Year)
510
child.
DataContext
is DateTime &&
511
((DateTime)child.
DataContext
).Year == selectedYear.Year)
570
if (!(b.
DataContext
is DateTime))
578
DateTime clickedDate = (DateTime)b.
DataContext
;
664
if (this.Owner == null || !(b.
DataContext
is DateTime))
683
DateTime selectedDate = (DateTime)b.
DataContext
;
771
if (this.Owner == null || !(b.
DataContext
is DateTime))
776
DateTime selectedDate = (DateTime)b.
DataContext
;
822
if (!(b.
DataContext
is DateTime))
827
FinishSelection((DateTime)b.
DataContext
);
1169
if (childButton.
DataContext
is DateTime)
1171
DateTime date = (DateTime)childButton.
DataContext
;
System\Windows\Controls\Primitives\Selector.cs (1)
1109
if (
DataContext
== BindingExpressionBase.DisconnectedItem)
System\Windows\Navigation\NavigationWindow.cs (1)
1079
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
918
if (
DataContext
!= null && AssemblyHelper.IsXmlNode(
DataContext
))