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)
40
DataContext
= _viewModel;
56
DataContext
= null;
ChangeSignature\ChangeSignatureDialog.xaml.cs (1)
70
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)
60
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)
30
DataContext
= ViewModel;
ExtractInterface\ExtractInterfaceDialog.xaml.cs (1)
44
DataContext
= viewModel;
GenerateType\GenerateTypeDialog.xaml.cs (1)
44
DataContext
= viewModel;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (2)
90
DataContext
= viewModel;
130
ContextMenu.
DataContext
= viewModel;
MoveStaticMembers\MoveStaticMembersDialog.xaml.cs (1)
31
DataContext
= viewModel;
MoveStaticMembers\StaticMemberSelection.xaml.cs (1)
26
DataContext
= ViewModel;
MoveToNamespace\MoveToNamespaceDialog.xaml.cs (1)
36
DataContext
= viewModel;
PickMembers\PickMembersDialog.xaml.cs (1)
43
DataContext
= viewModel;
PullMemberUp\MainDialog\PullMemberUpDialog.xaml.cs (1)
36
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)
46
control.
DataContext
= Validation.GetErrors(adornedElement);
System\Windows\Controls\ContentPresenter.cs (3)
108
DataContext
= null; // this presents a uniform view: CP always has local DC
237
ctrl.
DataContext
= e.NewValue;
856
this.
DataContext
= Content;
System\Windows\Controls\DataGrid.cs (2)
6936
target.
DataContext
= _item;
6972
target.
DataContext
= _item;
System\Windows\Controls\GridViewRowPresenter.cs (2)
588
cell.
DataContext
= Content;
653
cell.
DataContext
= Content;
System\Windows\Controls\Primitives\CalendarItem.cs (7)
1026
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length];
1030
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length];
1059
childButton.
DataContext
= dateToAdd;
1065
childButton.
DataContext
= null;
1250
childButton.
DataContext
= day;
1275
childButton.
DataContext
= null;
1294
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)
612
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)
288
&& 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)
491
ItemsControl.EqualsEx(child.
DataContext
, parent.
DataContext
))
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
149
if (owningButton != null && owningButton.
DataContext
is DateTime)
151
date = (DateTime)owningButton.
DataContext
;
384
object dataContext = (child as FrameworkElement).
DataContext
;
System\Windows\Controls\Calendar.cs (4)
857
if (b.
DataContext
is DateTime)
859
if (DateTimeHelper.CompareDays((DateTime)b.
DataContext
, day) == 0)
914
if (b.
DataContext
is DateTime)
916
DateTime d = (DateTime)b.
DataContext
;
System\Windows\Controls\DataGrid.cs (1)
6888
object item = (_cell != null) ? _cell.
DataContext
: _item;
System\Windows\Controls\DataGridCell.cs (1)
1115
return
DataContext
;
System\Windows\Controls\DataGridRow.cs (2)
1087
if (grid != null && row.
DataContext
!= null)
1092
DataGridItemAutomationPeer rowItemPeer = gridPeer.FindOrCreateItemAutomationPeer(row.
DataContext
) as DataGridItemAutomationPeer;
System\Windows\Controls\Frame.cs (1)
650
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
System\Windows\Controls\Primitives\CalendarItem.cs (19)
377
if (b != null && b.
DataContext
is DateTime)
379
if (DateTimeHelper.CompareDays(date, (DateTime)b.
DataContext
) == 0)
395
if (b != null && b.
DataContext
is DateTime)
399
if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.
DataContext
) == 0)
406
if (date.Year == ((DateTime)b.
DataContext
).Year)
494
child.
DataContext
is DateTime &&
495
((DateTime)child.
DataContext
).Year == selectedYear.Year)
505
child.
DataContext
is DateTime &&
506
((DateTime)child.
DataContext
).Year == selectedYear.Year)
565
if (!(b.
DataContext
is DateTime))
573
DateTime clickedDate = (DateTime)b.
DataContext
;
659
if (this.Owner == null || !(b.
DataContext
is DateTime))
678
DateTime selectedDate = (DateTime)b.
DataContext
;
766
if (this.Owner == null || !(b.
DataContext
is DateTime))
771
DateTime selectedDate = (DateTime)b.
DataContext
;
817
if (!(b.
DataContext
is DateTime))
822
FinishSelection((DateTime)b.
DataContext
);
1164
if (childButton.
DataContext
is DateTime)
1166
DateTime date = (DateTime)childButton.
DataContext
;
System\Windows\Controls\Primitives\Selector.cs (1)
1100
if (
DataContext
== BindingExpressionBase.DisconnectedItem)
System\Windows\Navigation\NavigationWindow.cs (1)
1063
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
915
if (
DataContext
!= null && AssemblyHelper.IsXmlNode(
DataContext
))