66 writes to Content
IdeBenchmarks (1)
InheritanceMargin\InheritanceMarginGlyphBenchmarks.cs (1)
181
_wpfApp.MainWindow.
Content
= _canvas;
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
QuickInfo\ContentControlService.cs (2)
60
Content
= control
83
Content
= control
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
225
_responseControl.
Content
= ToUIElement(
ViewHostingControl.cs (2)
47
this.
Content
= _createdView.VisualElement;
69
this.
Content
= null;
Microsoft.VisualStudio.LanguageServices (5)
DocumentOutline\DocumentOutlineView.xaml.cs (1)
69
Commands.
Content
= frameworkElement;
ErrorReporting\DetailedErrorInfoDialog.xaml.cs (2)
22
this.CopyButton.
Content
= ServicesVSResources.Copy_to_Clipboard;
23
this.CloseButton.
Content
= ServicesVSResources.Close;
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
102
ToolTip = new ToolTip {
Content
= viewModel.ToolTipTextBlock, Style = (Style)FindResource(ToolTipStyleKey) };
PreviewPane\PreviewPane.xaml.cs (1)
141
PreviewScrollViewer.
Content
= previewElement;
Microsoft.VisualStudio.LanguageServices.CSharp (7)
Options\Formatting\FormattingOptionPageControl.xaml.cs (5)
29
FormatWhenTypingCheckBox.
Content
= CSharpVSResources.Automatically_format_when_typing;
30
FormatOnSemicolonCheckBox.
Content
= CSharpVSResources.Automatically_format_statement_on_semicolon;
31
FormatOnCloseBraceCheckBox.
Content
= CSharpVSResources.Automatically_format_block_on_close_brace;
32
FormatOnReturnCheckBox.
Content
= CSharpVSResources.Automatically_format_on_return;
33
FormatOnPasteCheckBox.
Content
= CSharpVSResources.Automatically_format_on_paste;
SemanticSearch\SemanticSearchToolWindowImpl.cs (2)
198
holder.
Content
= image;
203
Content
= holder,
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
167
.
Content
= controlContent
PresentationFramework (29)
MS\Internal\Documents\DocumentGridPage.cs (1)
301
_documentContainer.
Content
= _documentPageView;
System\Windows\Controls\ContentControl.cs (3)
141
Content
= item;
166
Content
= BindingExpressionBase.DisconnectedItem;
201
Content
= value;
System\Windows\Controls\DataGridCell.cs (3)
126
Content
= item;
206
Content
= null;
421
Content
= newContent;
System\Windows\Controls\DatePicker.cs (1)
708
_dropDownButton.
Content
= SR.DatePicker_DropDownButtonName;
System\Windows\Controls\DocumentViewer.cs (1)
2129
_scrollViewer.
Content
= _documentScrollInfo;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
124
_contentHost.
Content
= null;
141
_contentHost.
Content
= new FlowDocumentView();
System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1120
paddingHeader.
Content
= null;
1234
_floatingHeader.
Content
= srcHeader.Content;
1402
header.
Content
= column.Header;
System\Windows\Controls\GroupItem.cs (1)
207
this.
Content
= item;
System\Windows\Controls\HeaderedContentControl.cs (2)
338
Content
= item;
371
Content
= BindingExpressionBase.DisconnectedItem;
System\Windows\Controls\PasswordBox.cs (2)
964
scrollViewer.
Content
= _renderScope;
1018
((ScrollViewer)_passwordBoxContentHost).
Content
= null;
System\Windows\Controls\Primitives\CalendarItem.cs (5)
191
this._previousButton.
Content
= SR.Calendar_PreviousButtonName;
203
this._nextButton.
Content
= SR.Calendar_NextButtonName;
1198
this._headerButton.
Content
= DateTimeHelper.ToYearMonthPatternString(DisplayDate, DateTimeHelper.GetCulture(this));
1329
this._headerButton.
Content
= DateTimeHelper.ToYearString(DisplayDate, DateTimeHelper.GetCulture(this));
1357
this._headerButton.
Content
= DateTimeHelper.ToDecadeRangeString(decade, this);
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1996
scrollViewer.
Content
= _renderScope; // this may replace old render scope in case of upgrade scenario in TextBox
2043
((ScrollViewer)_textBoxContentHost).
Content
= null;
System\Windows\Controls\Slider.cs (2)
857
_autoToolTip.
Content
= GetAutoToolTipNumber();
887
_autoToolTip.
Content
= GetAutoToolTipNumber();
System\Windows\Navigation\NavigationWindow.cs (1)
1010
Content
= e.Content;
PresentationUI (3)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
733
host.
Content
= _zoomComboBox;
785
host.
Content
= _pageTextBox;
1830
newItem.
Content
= zoomItem;
Roslyn.VisualStudio.DiagnosticsWindow (14)
DiagnosticsWindow.cs (3)
42
Content
= new PerfMarginPanel()
48
Content
= new TelemetryPanel()
54
Content
= new WorkspacePanel(this)
OptionPages\ForceLowMemoryModePage.cs (1)
34
var cb = new CheckBox {
Content
= "Forced Low Memory Mode: allocate" };
OptionPages\InternalOptionsControl.cs (8)
38
viewer.
Content
= optionsPanel;
43
var searchButton = new Button() {
Content
= "Search" };
67
var clearButton = new Button() {
Content
= "Clear" };
82
var checkAllButton = new Button() {
Content
= "Check All" };
85
var uncheckAllButton = new Button() {
Content
= "Uncheck All" };
107
this.
Content
= mainPanel;
152
var checkBox = new CheckBox() {
Content
= optionDisplay };
159
var label = new Label() {
Content
= optionDisplay };
PerfMargin\PerfMarginPanel.cs (1)
49
Content
= _mainGrid;
VenusMargin\ProjectionBufferMargin.xaml.cs (1)
57
Content
= host.HostControl,
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
493
ribbonControl.
Content
= item; //foo4
68 references to Content
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
ViewHostingControl.cs (2)
43
if (this.
Content
== null)
56
return (ITextView)this.
Content
;
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Options\OptionPageSearchHandlerTests.vb (1)
176
Dim textBlock = Assert.IsType(Of TextBlock)(control.
Content
)
PresentationFramework (55)
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (3)
187
return (UIElement)scrollViewer.ScrollViewer.
Content
;
403
IServiceProvider provider = scrollViewer.ScrollViewer.
Content
as IServiceProvider;
441
IServiceProvider provider = scrollViewer.ScrollViewer.
Content
as IServiceProvider;
MS\Internal\AppModel\NavigationHelper.cs (1)
24
object content = navigator.
Content
;
MS\Internal\Controls\ModelTreeEnumerator.cs (2)
159
return Object.ReferenceEquals(Content, _owner.
Content
);
218
Object.ReferenceEquals(_content, _owner.
Content
);
MS\Internal\Data\ObjectRef.cs (1)
239
if (cc != null && cc.
Content
== fo.DO && cc.InheritanceBehavior == InheritanceBehavior.Default)
MS\Internal\Documents\DocumentGridContextMenu.cs (1)
63
OnContextMenuOpening(dv.ScrollViewer.
Content
, e);
MS\Internal\LayoutDump.cs (1)
523
fdv = fdsv.ScrollViewer.
Content
as FlowDocumentView;
System\Windows\Automation\Peers\ButtonBaseAutomationPeer.cs (1)
75
if (bb.
Content
is string)
System\Windows\Automation\Peers\LabelAutomationPeer.cs (1)
47
if (label.
Content
is string)
System\Windows\Automation\Peers\StatusBarAutomationPeer.cs (1)
66
|| (obj is StatusBarItem && ((StatusBarItem)obj).
Content
is string))
System\Windows\Controls\ComboBox.cs (2)
505
((highlightedElement = comboBox.HighlightedElement) != null && highlightedElement.
Content
== comboBox._clonedElement);
883
item = contentControl.
Content
;
System\Windows\Controls\ContentControl.cs (3)
68
object content =
Content
;
106
return ContentObjectToString(
Content
);
199
if (
Content
== null || value == null)
System\Windows\Controls\DataGridCell.cs (7)
119
else if ((
Content
as FrameworkElement) == null)
393
RemoveBindingExpressions(bindingGroup,
Content
as DependencyObject);
403
FrameworkElement oldContent =
Content
as FrameworkElement;
592
column.BeginEdit(
Content
as FrameworkElement, e);
606
column.CancelEdit(
Content
as FrameworkElement);
622
validationPassed = column.CommitEdit(
Content
as FrameworkElement);
649
return
Content
as FrameworkElement;
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
110
CheckBox checkBox = (cell != null) ? (cell.
Content
as CheckBox) : null;
130
var checkBox = cell.
Content
as CheckBox;
System\Windows\Controls\DataGridColumn.cs (1)
649
return cell.
Content
as FrameworkElement;
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
424
ComboBox comboBox = cell.
Content
as ComboBox;
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
124
TextBlock outerBlock = cell.
Content
as TextBlock;
System\Windows\Controls\DataGridTextColumn.cs (1)
128
FrameworkElement textElement = cell.
Content
as FrameworkElement;
System\Windows\Controls\DatePicker.cs (1)
706
if (_dropDownButton.
Content
== null)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
129
if (_contentHost.
Content
!= null)
1803
get { return (_contentHost != null) ? _contentHost.
Content
as FlowDocumentView : null; }
System\Windows\Controls\Frame.cs (4)
219
DependencyObject doContent =
Content
as DependencyObject;
676
e.CanExecute =
Content
!= null;
740
return ( !_navigationService.CanReloadFromUri &&
Content
!= null);
1305
if (!HasTemplateGeneratedSubTree && (d =
Content
as DependencyObject) != null)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1232
if (!(srcHeader.
Content
is Visual))
1234
_floatingHeader.Content = srcHeader.
Content
;
System\Windows\Controls\GroupItem.cs (1)
125
System.Windows.Data.CollectionViewGroup cvg =
Content
as System.Windows.Data.CollectionViewGroup;
System\Windows\Controls\HeaderedContentControl.cs (3)
286
return new HeaderedContentModelTreeEnumerator(this, ContentIsNotLogical ? null :
Content
, header);
400
contentText = ContentControl.ContentObjectToString(
Content
);
409
contentText = ContentControl.ContentObjectToString(
Content
);
System\Windows\Controls\ListBoxItem.cs (1)
199
VisualStateManager.GoToState(this,
Content
is Control ? VisualStates.StateNormal : VisualStates.StateDisabled, useTransitions);
System\Windows\Controls\PasswordBox.cs (1)
958
if (scrollViewer.
Content
!= null)
System\Windows\Controls\Primitives\CalendarItem.cs (2)
189
if (this._previousButton.
Content
== null)
201
if (this._nextButton.
Content
== null)
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1987
if (scrollViewer.
Content
!= null)
System\Windows\Controls\TabControl.cs (1)
573
SelectedContent = tabItem.
Content
;
System\Windows\Controls\UserControl.cs (1)
65
return
Content
as FrameworkElement;
System\Windows\Navigation\NavigationService.cs (2)
4514
if (cc != null && cc.ContentIsNotLogical && cc.
Content
!= null)
4516
DisposeElement(cc.
Content
);
System\Windows\Navigation\NavigationWindow.cs (1)
1055
e.CanExecute = nw.
Content
!= null;
System\Windows\Window.cs (2)
531
return new SingleChildEnumerator(this.
Content
);
2104
DependencyObject doContent =
Content
as DependencyObject;
PresentationUI (4)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
287
Text = ((ComboBoxItem)SelectedItem).
Content
.ToString();
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
1038
if ((host != null) && ((_findToolBar = host.
Content
as FindToolBar) != null))
1694
cbItem.
Content
is ZoomComboBoxItem)
1696
ZoomComboBoxItem item = (ZoomComboBoxItem)cbItem.
Content
;
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\InternalOptionsControl.cs (1)
48
var title = item.
Content
as string;
System.Windows.Controls.Ribbon (5)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
526
item = contentControl.
Content
;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1501
return dummyElement.
Content
;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (2)
157
get { return RibbonHelper.GetIsContentTooltip(VisualChild,
Content
); }
158
set { RibbonHelper.SetContentAsToolTip(this, VisualChild,
Content
, value); }
Microsoft\Windows\Controls\TextSearchInternal.cs (1)
644
return ConvertToPlainText(cc.
Content
);