33 writes to Content
PresentationFramework (29)
MS\Internal\Documents\DocumentGridPage.cs (1)
290Content = _documentPageView
System\Windows\Controls\ContentControl.cs (3)
131Content = item; 156Content = BindingExpressionBase.DisconnectedItem; 191Content = value;
System\Windows\Controls\DataGridCell.cs (3)
118Content = item; 195Content = null; 410Content = newContent;
System\Windows\Controls\DatePicker.cs (1)
703_dropDownButton.Content = SR.DatePicker_DropDownButtonName;
System\Windows\Controls\DocumentViewer.cs (1)
2067_scrollViewer.Content = _documentScrollInfo;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
117_contentHost.Content = null; 134_contentHost.Content = new FlowDocumentView();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1086paddingHeader.Content = null; 1204_floatingHeader.Content = srcHeader.Content; 1372header.Content = column.Header;
System\Windows\Controls\GroupItem.cs (1)
192this.Content = item;
System\Windows\Controls\HeaderedContentControl.cs (2)
332Content = item; 365Content = BindingExpressionBase.DisconnectedItem;
System\Windows\Controls\PasswordBox.cs (2)
944scrollViewer.Content = _renderScope; 997((ScrollViewer)_passwordBoxContentHost).Content = null;
System\Windows\Controls\Primitives\CalendarItem.cs (5)
174this._previousButton.Content = SR.Calendar_PreviousButtonName; 186this._nextButton.Content = SR.Calendar_NextButtonName; 1170this._headerButton.Content = DateTimeHelper.ToYearMonthPatternString(DisplayDate, DateTimeHelper.GetCulture(this)); 1301this._headerButton.Content = DateTimeHelper.ToYearString(DisplayDate, DateTimeHelper.GetCulture(this)); 1329this._headerButton.Content = DateTimeHelper.ToDecadeRangeString(decade, this);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1905scrollViewer.Content = _renderScope; // this may replace old render scope in case of upgrade scenario in TextBox 1951((ScrollViewer)_textBoxContentHost).Content = null;
System\Windows\Controls\Slider.cs (2)
829_autoToolTip.Content = GetAutoToolTipNumber(); 859_autoToolTip.Content = GetAutoToolTipNumber();
System\Windows\Navigation\NavigationWindow.cs (1)
989Content = e.Content;
PresentationUI (3)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
722host.Content = _zoomComboBox; 778host.Content = _pageTextBox; 1829Content = zoomItem,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
472ribbonControl.Content = item; //foo4
64 references to Content
PresentationFramework (55)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (3)
177return (UIElement)scrollViewer.ScrollViewer.Content; 393IServiceProvider provider = scrollViewer.ScrollViewer.Content as IServiceProvider; 431IServiceProvider provider = scrollViewer.ScrollViewer.Content as IServiceProvider;
MS\Internal\AppModel\NavigationHelper.cs (1)
16object content = navigator.Content;
MS\Internal\Controls\ModelTreeEnumerator.cs (2)
146return Object.ReferenceEquals(Content, _owner.Content); 205Object.ReferenceEquals(_content, _owner.Content);
MS\Internal\Data\ObjectRef.cs (1)
232if (cc != null && cc.Content == fo.DO && cc.InheritanceBehavior == InheritanceBehavior.Default)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
54OnContextMenuOpening(dv.ScrollViewer.Content, e);
MS\Internal\LayoutDump.cs (1)
521fdv = fdsv.ScrollViewer.Content as FlowDocumentView;
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (1)
61if (bb.Content is string)
System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
35if (label.Content is string)
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
55|| (obj is StatusBarItem && ((StatusBarItem)obj).Content is string))
System\Windows\Controls\ComboBox.cs (2)
488((highlightedElement = comboBox.HighlightedElement) != null && highlightedElement.Content == comboBox._clonedElement); 861item = contentControl.Content;
System\Windows\Controls\ContentControl.cs (3)
58object content = Content; 96return ContentObjectToString(Content); 189if (Content == null || value == null)
System\Windows\Controls\DataGridCell.cs (7)
111else if ((Content as FrameworkElement) == null) 382RemoveBindingExpressions(bindingGroup, Content as DependencyObject); 392FrameworkElement oldContent = Content as FrameworkElement; 576column?.BeginEdit(Content as FrameworkElement, e); 587column?.CancelEdit(Content as FrameworkElement); 602validationPassed = column.CommitEdit(Content as FrameworkElement); 629return Content as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
105CheckBox checkBox = (cell != null) ? (cell.Content as CheckBox) : null; 123if (cell.Content is CheckBox checkBox)
System\Windows\Controls\DataGridColumn.cs (1)
645return cell.Content as FrameworkElement;
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
418ComboBox comboBox = cell.Content as ComboBox;
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
116TextBlock outerBlock = cell.Content as TextBlock;
System\Windows\Controls\DataGridTextColumn.cs (1)
124FrameworkElement textElement = cell.Content as FrameworkElement;
System\Windows\Controls\DatePicker.cs (1)
701if (_dropDownButton.Content == null)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
122if (_contentHost.Content != null) 1748get { return (_contentHost != null) ? _contentHost.Content as FlowDocumentView : null; }
System\Windows\Controls\Frame.cs (4)
206DependencyObject doContent = Content as DependencyObject; 659e.CanExecute = Content != null; 723return ( !_navigationService.CanReloadFromUri && Content != null); 1280if (!HasTemplateGeneratedSubTree && (d = Content as DependencyObject) != null)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1202if (!(srcHeader.Content is Visual)) 1204_floatingHeader.Content = srcHeader.Content;
System\Windows\Controls\GroupItem.cs (1)
113System.Windows.Data.CollectionViewGroup cvg = Content as System.Windows.Data.CollectionViewGroup;
System\Windows\Controls\HeaderedContentControl.cs (3)
280return new HeaderedContentModelTreeEnumerator(this, ContentIsNotLogical ? null : Content, header); 394contentText = ContentControl.ContentObjectToString(Content); 403contentText = ContentControl.ContentObjectToString(Content);
System\Windows\Controls\ListBoxItem.cs (1)
188VisualStateManager.GoToState(this, Content is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\PasswordBox.cs (1)
938if (scrollViewer.Content != null)
System\Windows\Controls\Primitives\CalendarItem.cs (2)
172if (this._previousButton.Content == null) 184if (this._nextButton.Content == null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1896if (scrollViewer.Content != null)
System\Windows\Controls\TabControl.cs (1)
553SelectedContent = tabItem.Content;
System\Windows\Controls\UserControl.cs (1)
58return Content as FrameworkElement;
System\Windows\Navigation\NavigationService.cs (2)
4422if (cc != null && cc.ContentIsNotLogical && cc.Content != null) 4424DisposeElement(cc.Content);
System\Windows\Navigation\NavigationWindow.cs (1)
1034e.CanExecute = nw.Content != null;
System\Windows\Window.cs (2)
509return new SingleChildEnumerator(this.Content); 2072DependencyObject doContent = Content as DependencyObject;
PresentationUI (4)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
280Text = ((ComboBoxItem)SelectedItem).Content.ToString();
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
1027if ((host != null) && ((_findToolBar = host.Content as FindToolBar) != null)) 1693cbItem.Content is ZoomComboBoxItem) 1695ZoomComboBoxItem item = (ZoomComboBoxItem)cbItem.Content;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
519item = contentControl.Content;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1502return dummyElement.Content;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
154get { return RibbonHelper.GetIsContentTooltip(VisualChild, Content); } 155set { RibbonHelper.SetContentAsToolTip(this, VisualChild, Content, value); }
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
638return ConvertToPlainText(cc.Content);