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