31 writes to DataContext
PresentationFramework (15)
src\Framework\MS\Internal\Controls\TemplatedAdorner.cs (1)
59
control.
DataContext
= Validation.GetErrors(adornedElement);
src\Framework\System\Windows\Controls\ContentPresenter.cs (3)
119
DataContext
= null; // this presents a uniform view: CP always has local DC
248
ctrl.
DataContext
= e.NewValue;
867
this.
DataContext
= Content;
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6941
target.
DataContext
= _item;
6977
target.
DataContext
= _item;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (2)
595
cell.
DataContext
= Content;
660
cell.
DataContext
= Content;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (7)
1034
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length];
1038
daytitle.
DataContext
= shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length];
1067
childButton.
DataContext
= dateToAdd;
1073
childButton.
DataContext
= null;
1258
childButton.
DataContext
= day;
1283
childButton.
DataContext
= null;
1302
childButton.
DataContext
= day;
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\DynamicActivityPropertyChooser.xaml.cs (1)
83
this.
DataContext
= this.Model;
System.Activities.Presentation (15)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (1)
58
checkBox.
DataContext
= panel;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\PropertyInspector\StandardCategoryLayout.cs (1)
33
propertyContainer.
DataContext
= item;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
222
rect.
DataContext
= string.Empty;
System.Activities.Presentation\System\Activities\Presentation\Converters\ModelPropertyEntryToModelItemConverter.cs (2)
115
editor.
DataContext
= null;
123
editor.
DataContext
= context;
System.Activities.Presentation\System\Activities\Presentation\View\ErrorView.xaml.cs (1)
36
this.
DataContext
= this;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionWindow.cs (2)
115
this.
DataContext
= this;
535
item.
DataContext
= this;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (3)
66
viewElement.
DataContext
= viewElement;
110
errorElement.
DataContext
= errorElement;
188
viewElement.
DataContext
= viewElement;
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (1)
155
this.
DataContext
= this;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
75
this.text.
DataContext
= this;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (2)
85
hintTextGrid.
DataContext
= this;
93
text.
DataContext
= this;
43 references to DataContext
PresentationFramework (35)
src\Framework\MS\Internal\Data\ObjectRef.cs (2)
507
ItemsControl.EqualsEx(child.
DataContext
, parent.
DataContext
))
src\Framework\System\Windows\Automation\Peers\CalendarAutomationPeer.cs (3)
156
if (owningButton != null && owningButton.
DataContext
is DateTime)
158
date = (DateTime)owningButton.
DataContext
;
398
object dataContext = (child as FrameworkElement).
DataContext
;
src\Framework\System\Windows\Controls\Calendar.cs (4)
862
if (b.
DataContext
is DateTime)
864
if (DateTimeHelper.CompareDays((DateTime)b.
DataContext
, day) == 0)
919
if (b.
DataContext
is DateTime)
921
DateTime d = (DateTime)b.
DataContext
;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
6894
object item = (_cell != null) ? _cell.
DataContext
: _item;
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
1078
return
DataContext
;
src\Framework\System\Windows\Controls\DataGridRow.cs (2)
1092
if (grid != null && row.
DataContext
!= null)
1097
DataGridItemAutomationPeer rowItemPeer = gridPeer.FindOrCreateItemAutomationPeer(row.
DataContext
) as DataGridItemAutomationPeer;
src\Framework\System\Windows\Controls\Frame.cs (1)
683
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (19)
383
if (b != null && b.
DataContext
is DateTime)
385
if (DateTimeHelper.CompareDays(date, (DateTime)b.
DataContext
) == 0)
401
if (b != null && b.
DataContext
is DateTime)
405
if (DateTimeHelper.CompareYearMonth(date, (DateTime)b.
DataContext
) == 0)
412
if (date.Year == ((DateTime)b.
DataContext
).Year)
500
child.
DataContext
is DateTime &&
501
((DateTime)child.
DataContext
).Year == selectedYear.Year)
511
child.
DataContext
is DateTime &&
512
((DateTime)child.
DataContext
).Year == selectedYear.Year)
571
if (!(b.
DataContext
is DateTime))
579
DateTime clickedDate = (DateTime)b.
DataContext
;
665
if (this.Owner == null || !(b.
DataContext
is DateTime))
684
DateTime selectedDate = (DateTime)b.
DataContext
;
773
if (this.Owner == null || !(b.
DataContext
is DateTime))
778
DateTime selectedDate = (DateTime)b.
DataContext
;
824
if (!(b.
DataContext
is DateTime))
829
FinishSelection((DateTime)b.
DataContext
);
1172
if (childButton.
DataContext
is DateTime)
1174
DateTime date = (DateTime)childButton.
DataContext
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (1)
1123
if (
DataContext
== BindingExpressionBase.DisconnectedItem &&
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
1106
JournalEntry je = journalEntryUIElem.
DataContext
as JournalEntry;
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
204
argumentTypeTypePresenter.Filter = ((DesignTimeArgument)argumentTypeTypePresenter.
DataContext
).Filter;
415
var argument = (DesignTimeArgument)resolveParams.Cell.
DataContext
;
454
var argument = (DesignObjectWrapper)cell.
DataContext
;
460
var argument = (DesignObjectWrapper)cell.
DataContext
;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
769
contentContainer.Content = cell.
DataContext
;
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (3)
511
var variable = (DesignObjectWrapper)resolveParams.Cell.
DataContext
;
535
var variable = (DesignObjectWrapper)cell.
DataContext
;
541
var variable = (DesignObjectWrapper)cell.
DataContext
;