42 writes to Content
PresentationFramework (28)
src\Framework\System\Windows\Controls\ContentControl.cs (3)
137
Content
= item;
162
Content
= BindingExpressionBase.DisconnectedItem;
197
Content
= value;
src\Framework\System\Windows\Controls\DataGridCell.cs (3)
121
Content
= item;
201
Content
= null;
416
Content
= newContent;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
697
_dropDownButton.
Content
= SR.Get(SRID.DatePicker_DropDownButtonName);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2174
_scrollViewer.
Content
= _documentScrollInfo;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
125
_contentHost.
Content
= null;
142
_contentHost.
Content
= new FlowDocumentView();
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1123
paddingHeader.
Content
= null;
1237
_floatingHeader.
Content
= srcHeader.Content;
1405
header.
Content
= column.Header;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
209
this.
Content
= item;
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (2)
339
Content
= item;
372
Content
= BindingExpressionBase.DisconnectedItem;
src\Framework\System\Windows\Controls\PasswordBox.cs (2)
980
scrollViewer.
Content
= _renderScope;
1034
((ScrollViewer)_passwordBoxContentHost).
Content
= null;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (5)
192
this._previousButton.
Content
= SR.Get(SRID.Calendar_PreviousButtonName);
204
this._nextButton.
Content
= SR.Get(SRID.Calendar_NextButtonName);
1201
this._headerButton.
Content
= DateTimeHelper.ToYearMonthPatternString(DisplayDate, DateTimeHelper.GetCulture(this));
1333
this._headerButton.
Content
= DateTimeHelper.ToYearString(DisplayDate, DateTimeHelper.GetCulture(this));
1361
this._headerButton.
Content
= DateTimeHelper.ToDecadeRangeString(decade, this);
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
2027
scrollViewer.
Content
= _renderScope; // this may replace old render scope in case of upgrade scenario in TextBox
2074
((ScrollViewer)_textBoxContentHost).
Content
= null;
src\Framework\System\Windows\Controls\Slider.cs (2)
860
_autoToolTip.
Content
= GetAutoToolTipNumber();
891
_autoToolTip.
Content
= GetAutoToolTipNumber();
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
1037
Content
= e.Content;
System.Activities.Presentation (14)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (1)
57
checkBox.
Content
= flagName;
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
139
this.
Content
= new ContentPresenter()
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (4)
764
contentContainer.
Content
= propertyEntry.PropertyValue;
769
contentContainer.
Content
= cell.DataContext;
911
container.
Content
= err.ToString();
1524
Content
= entry.GetValidationErrors(invalidProperties),
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (4)
353
this.
Content
= null;
387
this.
Content
= null;
394
this.
Content
= this.editor;
408
this.
Content
= null;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (1)
69
this.
Content
= contentPresenter;
System.Activities.Presentation\System\Activities\Presentation\View\WorkflowViewService.cs (1)
99
errorElement.
Content
= errorGrid;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (1)
276
this.
Content
= containerGrid;
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
312
this.
Content
= outerGrid;
71 references to Content
PresentationFramework (59)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (3)
193
return (UIElement)scrollViewer.ScrollViewer.
Content
;
413
IServiceProvider provider = scrollViewer.ScrollViewer.
Content
as IServiceProvider;
451
IServiceProvider provider = scrollViewer.ScrollViewer.
Content
as IServiceProvider;
src\Framework\MS\Internal\AppModel\NavigationHelper.cs (1)
20
object content = navigator.
Content
;
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (4)
925
Visual vis = rbw.
Content
as Visual;
934
IInputElement target = rbw.
Content
as IInputElement;
1013
e.CanExecute = rbw.
Content
!= null;
1095
Page page = window.
Content
as Page;
src\Framework\MS\Internal\Controls\ModelTreeEnumerator.cs (2)
161
return Object.ReferenceEquals(Content, _owner.
Content
);
220
Object.ReferenceEquals(_content, _owner.
Content
);
src\Framework\MS\Internal\Data\ObjectRef.cs (1)
243
if (cc != null && cc.
Content
== fo.DO && cc.InheritanceBehavior == InheritanceBehavior.Default)
src\Framework\MS\Internal\Documents\DocumentGridContextMenu.cs (1)
75
OnContextMenuOpening(dv.ScrollViewer.
Content
, e);
src\Framework\MS\Internal\LayoutDump.cs (1)
526
fdv = fdsv.ScrollViewer.
Content
as FlowDocumentView;
src\Framework\System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (1)
72
if (bb.
Content
is string)
src\Framework\System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
44
if (label.
Content
is string)
src\Framework\System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
63
|| (obj is StatusBarItem && ((StatusBarItem)obj).
Content
is string))
src\Framework\System\Windows\Controls\ComboBox.cs (2)
506
((highlightedElement = comboBox.HighlightedElement) != null && highlightedElement.
Content
== comboBox._clonedElement);
885
item = contentControl.
Content
;
src\Framework\System\Windows\Controls\ContentControl.cs (3)
64
object content =
Content
;
102
return ContentObjectToString(
Content
);
195
if (
Content
== null || value == null)
src\Framework\System\Windows\Controls\DataGridCell.cs (7)
114
else if ((
Content
as FrameworkElement) == null)
388
RemoveBindingExpressions(bindingGroup,
Content
as DependencyObject);
398
FrameworkElement oldContent =
Content
as FrameworkElement;
587
column.BeginEdit(
Content
as FrameworkElement, e);
601
column.CancelEdit(
Content
as FrameworkElement);
617
validationPassed = column.CommitEdit(
Content
as FrameworkElement);
644
return
Content
as FrameworkElement;
src\Framework\System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
99
CheckBox checkBox = (cell != null) ? (cell.
Content
as CheckBox) : null;
119
var checkBox = cell.
Content
as CheckBox;
src\Framework\System\Windows\Controls\DataGridColumn.cs (1)
656
return cell.
Content
as FrameworkElement;
src\Framework\System\Windows\Controls\DataGridComboBoxColumn.cs (1)
425
ComboBox comboBox = cell.
Content
as ComboBox;
src\Framework\System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
125
TextBlock outerBlock = cell.
Content
as TextBlock;
src\Framework\System\Windows\Controls\DataGridTextColumn.cs (1)
129
FrameworkElement textElement = cell.
Content
as FrameworkElement;
src\Framework\System\Windows\Controls\DatePicker.cs (1)
695
if (_dropDownButton.
Content
== null)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
130
if (_contentHost.
Content
!= null)
1811
get { return (_contentHost != null) ? _contentHost.
Content
as FlowDocumentView : null; }
src\Framework\System\Windows\Controls\Frame.cs (4)
226
DependencyObject doContent =
Content
as DependencyObject;
697
e.CanExecute =
Content
!= null;
761
return ( !_navigationService.CanReloadFromUri &&
Content
!= null);
1325
if (!HasTemplateGeneratedSubTree && (d =
Content
as DependencyObject) != null)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1235
if (!(srcHeader.
Content
is Visual))
1237
_floatingHeader.Content = srcHeader.
Content
;
src\Framework\System\Windows\Controls\GroupItem.cs (1)
127
System.Windows.Data.CollectionViewGroup cvg =
Content
as System.Windows.Data.CollectionViewGroup;
src\Framework\System\Windows\Controls\HeaderedContentControl.cs (3)
287
return new HeaderedContentModelTreeEnumerator(this, ContentIsNotLogical ? null :
Content
, header);
401
contentText = ContentControl.ContentObjectToString(
Content
);
410
contentText = ContentControl.ContentObjectToString(
Content
);
src\Framework\System\Windows\Controls\ListBoxItem.cs (1)
199
VisualStateManager.GoToState(this,
Content
is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
974
if (scrollViewer.
Content
!= null)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (2)
190
if (this._previousButton.
Content
== null)
202
if (this._nextButton.
Content
== null)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2018
if (scrollViewer.
Content
!= null)
src\Framework\System\Windows\Controls\TabControl.cs (1)
574
SelectedContent = tabItem.
Content
;
src\Framework\System\Windows\Controls\UserControl.cs (1)
67
return
Content
as FrameworkElement;
src\Framework\System\Windows\Navigation\NavigationService.cs (2)
4788
if (cc != null && cc.ContentIsNotLogical && cc.
Content
!= null)
4790
DisposeElement(cc.
Content
);
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
1082
e.CanExecute = nw.
Content
!= null;
src\Framework\System\Windows\Window.cs (2)
591
return new SingleChildEnumerator(this.
Content
);
2138
DependencyObject doContent =
Content
as DependencyObject;
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\ReorderableListEditor.xaml.cs (1)
60
this.SelectedListItem = item.
Content
as ExpandableItemWrapper;
System.Activities.Presentation (11)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (2)
83
if (str.Contains((panel.Children[this.index] as CheckBox).
Content
.ToString().ToUpperInvariant()))
106
str += (panel.Children[i] as CheckBox).
Content
.ToString();
System.Activities.Presentation\System\Activities\Presentation\ExpandButtonVisibilityConverter.cs (1)
44
viewElement.DoesParentAlwaysCollapseChildren() || (viewElement.
Content
== null && !hasDelegates) ||
System.Activities.Presentation\System\Activities\Presentation\MiniMap\MiniMapControl.xaml.cs (3)
266
if (null != this.mapSource && null != this.mapSource.
Content
&& this.mapSource.
Content
is FrameworkElement)
268
FrameworkElement content = (FrameworkElement)this.mapSource.
Content
;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
757
var resolveParams = new ResolveTemplateParams(cell, contentContainer.
Content
);
762
var content = this.LoadDynamicContentDataCallback(cell, contentContainer.
Content
);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
915
if (null != listBoxItem && listBoxItem.
Content
is ModelItem)
924
this.MakeRootDesigner((ModelItem)listBoxItem.
Content
);
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (1)
75
ContentPresenter presenter = (ContentPresenter)this.
Content
;