67 writes to Content
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
181_wpfApp.MainWindow.Content = _canvas;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (6)
QuickInfo\ContentControlService.cs (2)
60Content = control 83Content = control
QuickInfo\OnTheFlyDocsView.xaml.cs (2)
298_responseControl.Content = ToUIElement( 307_responseControl.Content = ToUIElement(new ContainerElement(ContainerElementStyle.Stacked,
ViewHostingControl.cs (2)
47this.Content = _createdView.VisualElement; 69this.Content = null;
Microsoft.VisualStudio.LanguageServices (5)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
70Commands.Content = frameworkElement;
ErrorReporting\DetailedErrorInfoDialog.xaml.cs (2)
22this.CopyButton.Content = ServicesVSResources.Copy_to_Clipboard; 23this.CloseButton.Content = ServicesVSResources.Close;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
102ToolTip = new ToolTip { Content = viewModel.ToolTipTextBlock, Style = (Style)FindResource(ToolTipStyleKey) };
PreviewPane\PreviewPane.xaml.cs (1)
142PreviewScrollViewer.Content = previewElement;
Microsoft.VisualStudio.LanguageServices.CSharp (7)
Options\Formatting\FormattingOptionPageControl.xaml.cs (5)
29FormatWhenTypingCheckBox.Content = CSharpVSResources.Automatically_format_when_typing; 30FormatOnSemicolonCheckBox.Content = CSharpVSResources.Automatically_format_statement_on_semicolon; 31FormatOnCloseBraceCheckBox.Content = CSharpVSResources.Automatically_format_block_on_close_brace; 32FormatOnReturnCheckBox.Content = CSharpVSResources.Automatically_format_on_return; 33FormatOnPasteCheckBox.Content = CSharpVSResources.Automatically_format_on_paste;
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
331holder.Content = image; 336Content = holder,
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
167.Content = controlContent
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)
2070_scrollViewer.Content = _documentScrollInfo;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
120_contentHost.Content = null; 137_contentHost.Content = new FlowDocumentView();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1117paddingHeader.Content = null; 1235_floatingHeader.Content = srcHeader.Content; 1403header.Content = column.Header;
System\Windows\Controls\GroupItem.cs (1)
198this.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)
185this._previousButton.Content = SR.Calendar_PreviousButtonName; 197this._nextButton.Content = SR.Calendar_NextButtonName; 1184this._headerButton.Content = DateTimeHelper.ToYearMonthPatternString(DisplayDate, DateTimeHelper.GetCulture(this)); 1315this._headerButton.Content = DateTimeHelper.ToYearString(DisplayDate, DateTimeHelper.GetCulture(this)); 1343this._headerButton.Content = DateTimeHelper.ToDecadeRangeString(decade, this);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1917scrollViewer.Content = _renderScope; // this may replace old render scope in case of upgrade scenario in TextBox 1963((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; 1833Content = zoomItem,
Roslyn.VisualStudio.DiagnosticsWindow (14)
DiagnosticsWindow.cs (3)
42Content = new PerfMarginPanel() 48Content = new TelemetryPanel() 54Content = new WorkspacePanel(this)
OptionPages\ForceLowMemoryModePage.cs (1)
33var cb = new CheckBox { Content = "Forced Low Memory Mode: allocate" };
OptionPages\InternalOptionsControl.cs (8)
38viewer.Content = optionsPanel; 43var searchButton = new Button() { Content = "Search" }; 67var clearButton = new Button() { Content = "Clear" }; 82var checkAllButton = new Button() { Content = "Check All" }; 85var uncheckAllButton = new Button() { Content = "Uncheck All" }; 107this.Content = mainPanel; 152var checkBox = new CheckBox() { Content = optionDisplay }; 159var label = new Label() { Content = optionDisplay };
PerfMargin\PerfMarginPanel.cs (1)
49Content = _mainGrid;
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
57Content = host.HostControl,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
475ribbonControl.Content = item; //foo4
68 references to Content
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
ViewHostingControl.cs (2)
43if (this.Content == null) 56return (ITextView)this.Content;
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
176Dim textBlock = Assert.IsType(Of TextBlock)(control.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); 864item = 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; 579column?.BeginEdit(Content as FrameworkElement, e); 590column?.CancelEdit(Content as FrameworkElement); 605validationPassed = column.CommitEdit(Content as FrameworkElement); 632return 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)
125if (_contentHost.Content != null) 1763get { 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)
1233if (!(srcHeader.Content is Visual)) 1235_floatingHeader.Content = srcHeader.Content;
System\Windows\Controls\GroupItem.cs (1)
116System.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)
183if (this._previousButton.Content == null) 195if (this._nextButton.Content == null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1908if (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)
4443if (cc != null && cc.ContentIsNotLogical && cc.Content != null) 4445DisposeElement(cc.Content);
System\Windows\Navigation\NavigationWindow.cs (1)
1034e.CanExecute = nw.Content != null;
System\Windows\Window.cs (2)
509return new SingleChildEnumerator(this.Content); 2078DependencyObject doContent = Content as DependencyObject;
PresentationUI (4)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
280Text = ((ComboBoxItem)SelectedItem).Content.ToString();
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
1031if ((host != null) && ((_findToolBar = host.Content as FindToolBar) != null)) 1697cbItem.Content is ZoomComboBoxItem) 1699ZoomComboBoxItem item = (ZoomComboBoxItem)cbItem.Content;
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
48var title = item.Content as string;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
522item = 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);