145 references to GetTemplateChild
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineRename\UI\SmartRename\SmartRenameUserInputComboBox.xaml.cs (1)
39
var textBox = (TextBox)
GetTemplateChild
(InnerTextBox)!;
PresentationFramework (65)
System\Windows\Controls\Calendar.cs (1)
758
_monthControl =
GetTemplateChild
(ElementMonth) as CalendarItem;
System\Windows\Controls\ComboBox.cs (2)
1643
EditableTextBoxSite =
GetTemplateChild
(EditableTextBoxTemplateName) as TextBox;
1644
_dropDownPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
103
_visualBrushCanvas =
GetTemplateChild
(VisualBrushCanvasTemplateName) as Canvas;
System\Windows\Controls\DatePicker.cs (3)
683
_popUp =
GetTemplateChild
(ElementPopup) as Popup;
698
_dropDownButton =
GetTemplateChild
(ElementButton) as Button;
712
_textBox =
GetTemplateChild
(ElementTextBox) as DatePickerTextBox;
System\Windows\Controls\Expander.cs (1)
316
_expanderToggleButton =
GetTemplateChild
(ExpanderToggleButtonTemplateName) as ToggleButton;
System\Windows\Controls\FlowDocumentReader.cs (3)
99
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as Decorator;
116
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
117
_findButton =
GetTemplateChild
(_findButtonTemplateName) as ToggleButton;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
106
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
109
_toolBarHost =
GetTemplateChild
(_toolBarHostTemplateName) as Decorator;
126
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as ScrollViewer;
System\Windows\Controls\GridViewColumnHeader.cs (2)
104
_floatingHeaderCanvas =
GetTemplateChild
(FloatingHeaderCanvasTemplateName) as Canvas;
706
_headerGripper =
GetTemplateChild
(HeaderGripperTemplateName) as Thumb;
System\Windows\Controls\GridViewRowPresenter.cs (1)
462
_viewPort = scrollViewer.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement;
System\Windows\Controls\GroupItem.cs (2)
53
_header = this.
GetTemplateChild
("PART_Header") as FrameworkElement;
439
return _expander.
GetTemplateChild
(ExpanderHeaderPartName) as FrameworkElement;
System\Windows\Controls\ItemsControl.cs (1)
2913
ScrollContentPresenter scp = viewPort.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\MenuItem.cs (1)
2180
_submenuPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
System\Windows\Controls\PasswordBox.cs (1)
946
_passwordBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
System\Windows\Controls\Primitives\CalendarItem.cs (6)
171
_monthView =
GetTemplateChild
(ElementMonthView) as Grid;
172
_yearView =
GetTemplateChild
(ElementYearView) as Grid;
173
_previousButton =
GetTemplateChild
(ElementPreviousButton) as Button;
174
_nextButton =
GetTemplateChild
(ElementNextButton) as Button;
175
_headerButton =
GetTemplateChild
(ElementHeaderButton) as Button;
176
_disabledVisual =
GetTemplateChild
(ElementDisabledVisual) as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
238
_leftGripper =
GetTemplateChild
(LeftHeaderGripperTemplateName) as Thumb;
239
_rightGripper =
GetTemplateChild
(RightHeaderGripperTemplateName) as Thumb;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
80
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
357
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
600
_topGripper =
GetTemplateChild
(TopHeaderGripperTemplateName) as Thumb;
601
_bottomGripper =
GetTemplateChild
(BottomHeaderGripperTemplateName) as Thumb;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
149
DependencyObject obj =
GetTemplateChild
(partName);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
221
_track =
GetTemplateChild
(TrackName) as Track;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
750
itemsPresenter = templatedParent.
GetTemplateChild
("ItemsPresenter") as ItemsPresenter;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1975
_textBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
System\Windows\Controls\ProgressBar.cs (3)
350
_track =
GetTemplateChild
(TrackTemplateName) as FrameworkElement;
351
_indicator =
GetTemplateChild
(IndicatorTemplateName) as FrameworkElement;
352
_glow =
GetTemplateChild
(GlowingRectTemplateName) as FrameworkElement;
System\Windows\Controls\ScrollViewer.cs (4)
944
ScrollContentPresenter viewPort =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1373
ScrollBar scrollBar =
GetTemplateChild
(HorizontalScrollBarTemplateName) as ScrollBar;
1378
scrollBar =
GetTemplateChild
(VerticalScrollBarTemplateName) as ScrollBar;
1594
ScrollContentPresenter viewport =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\SinglePageViewer.cs (1)
102
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
System\Windows\Controls\Slider.cs (3)
1359
SelectionRangeElement =
GetTemplateChild
(SelectionRangeElementName) as FrameworkElement;
1360
SelectedRangeElement =
GetTemplateChild
(SelectedRangeElementName) as FrameworkElement;
1361
Track =
GetTemplateChild
(TrackName) as Track;
System\Windows\Controls\StickyNote.cs (11)
714
return
GetTemplateChild
(SNBConstants.c_CloseButtonId) as Button;
722
return
GetTemplateChild
(SNBConstants.c_IconButtonId) as Button;
730
return
GetTemplateChild
(SNBConstants.c_TitleThumbId) as Thumb;
738
return
GetTemplateChild
(SNBConstants.c_ContentControlId) as UIElement;
746
return
GetTemplateChild
(SNBConstants.c_BottomRightResizeThumbId) as Thumb;
1816
return
GetTemplateChild
(SNBConstants.c_InkMenuId) as MenuItem;
1824
return
GetTemplateChild
(SNBConstants.c_SelectMenuId) as MenuItem;
1832
return
GetTemplateChild
(SNBConstants.c_EraseMenuId) as MenuItem;
1840
return
GetTemplateChild
(SNBConstants.c_CopyMenuId) as MenuItem;
1848
return
GetTemplateChild
(SNBConstants.c_PasteMenuId) as MenuItem;
1856
return
GetTemplateChild
(SNBConstants.c_ClipboardSeparatorId) as Separator;
System\Windows\Controls\TabControl.cs (1)
504
return
GetTemplateChild
(SelectedContentHostTemplateName) as ContentPresenter;
System\Windows\Controls\ToolBar.cs (2)
609
DependencyObject child =
GetTemplateChild
(ToolBarPanelTemplateName);
632
DependencyObject child =
GetTemplateChild
(ToolBarOverflowPanelTemplateName);
System\Windows\Controls\TreeViewItem.cs (2)
806
return
GetTemplateChild
(HeaderPartName) as FrameworkElement;
865
return
GetTemplateChild
(ItemsHostPartName) as ItemsPresenter;
PresentationUI (20)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
117
_editableTextBox =
GetTemplateChild
("PART_EditableTextBox") as TextBox;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (19)
698
_toolBar =
GetTemplateChild
(_toolBarName) as Grid;
715
ContentControl host =
GetTemplateChild
("ZoomComboBoxHost") as ContentControl;
750
_pageUpButton =
GetTemplateChild
(_pageUpButtonName) as Button;
767
ContentControl host =
GetTemplateChild
("PageTextBoxHost") as ContentControl;
802
_pageDownButton =
GetTemplateChild
(_pageDownButtonName) as Button;
818
_actualSizeButton =
GetTemplateChild
(_actualSizeButtonName) as Button;
834
_pageWidthButton =
GetTemplateChild
(_pageWidthButtonName) as Button;
850
_wholePageButton =
GetTemplateChild
(_wholePageButtonName) as Button;
867
_twoPageButton =
GetTemplateChild
(_twoPageButtonName) as Button;
883
_thumbnailButton =
GetTemplateChild
(_thumbnailButtonName) as Button;
899
_rmButton =
GetTemplateChild
(_rmButtonName) as Button;
915
_saveAsButton =
GetTemplateChild
(_saveAsButtonName) as Button;
931
_digitalSignaturesMenuItem =
GetTemplateChild
(_digitalSignaturesMenuItemName) as MenuItem;
947
_infoBar =
GetTemplateChild
(_infoBarName) as FrameworkElement;
964
_infoBarCloseButton =
GetTemplateChild
(_infoBarCloseButtonName)
987
_infoBarDigSigButton =
GetTemplateChild
(_infoBarSignaturesButtonName) as Button;
1012
_infoBarRMButton =
GetTemplateChild
(_infoBarRMButtonName) as Button;
1037
ContentControl host =
GetTemplateChild
("PART_FindToolBarHost") as ContentControl;
1059
_scrollViewer =
GetTemplateChild
(_contentHostName) as ScrollViewer;
System.Windows.Controls.Ribbon (59)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
742
_itemsPresenter =
GetTemplateChild
("ItemsPresenter") as ItemsPresenter;
743
_itemsPresenterPopup = this.
GetTemplateChild
(ItemsPresenterPopupTemplateName) as Popup;
745
_tabHeaderItemsControl = this.
GetTemplateChild
("TabHeaderItemsControl") as RibbonTabHeaderItemsControl;
751
_groupHeaderItemsControl = this.
GetTemplateChild
(Ribbon.ContextualTabGroupItemsControlTemplateName) as RibbonContextualTabGroupItemsControl;
768
this.RibbonTitlePanel = this.
GetTemplateChild
(Ribbon.TitlePanelTemplateName) as RibbonTitlePanel;
769
_qatTopHost = this.
GetTemplateChild
(Ribbon.QatHostTemplateName) as UIElement;
770
_titleHost = this.
GetTemplateChild
(Ribbon.TitleHostTemplateName) as UIElement;
771
_helpPaneHost = this.
GetTemplateChild
(Ribbon.HelpPaneTemplateName) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
302
_popup = this.
GetTemplateChild
(PopupTemplateName) as Popup;
303
SubmenuPlaceholder = this.
GetTemplateChild
(SubmenuTemplateName) as FrameworkElement;
304
_popupToggleButton = this.
GetTemplateChild
(PopupToggleButtonTemplateName) as RibbonToggleButton;
305
_footerPaneHost = this.
GetTemplateChild
(FooterPaneTemplateName) as ContentPresenter;
306
_auxiliaryPaneHost = this.
GetTemplateChild
(AuxiliaryPaneTemplateName) as ContentPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
68
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
67
_checkBorder =
GetTemplateChild
(CheckBorderTemplatePart) as Border;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1308
EditableTextBoxSite =
GetTemplateChild
(EditableTextBoxTemplateName) as TextBox;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
129
_partContentPresenter =
GetTemplateChild
(PART_ContentPresenter) as RibbonContentPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
120
_itemsPresenter = (ItemsPresenter)
GetTemplateChild
(ItemsHostName);
121
_filterContentPane =
GetTemplateChild
(FilterContentPaneTemplatePartName) as ContentPresenter;
122
_scrollViewer =
GetTemplateChild
(RibbonGallery.ScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
213
_itemsPresenter = (ItemsPresenter)
GetTemplateChild
(ItemsHostName);
214
_headerPresenter = (ContentPresenter)
GetTemplateChild
(HeaderPresenterName);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
125
_headerContentPresenter = this.
GetTemplateChild
(HeaderContentPresenterTemplatePartName) as ContentPresenter;
126
_collapsedDropDownButton = this.
GetTemplateChild
(CollapsedDropDownButtonTemplatePartName) as FrameworkElement;
127
_templateContentControl =
GetTemplateChild
(TemplateContentControlTemplatePartName) as ContentControl;
128
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
129
_collapsedGroupPopup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
137
_hotBackgroundBorder =
GetTemplateChild
(HotBackgroundBorderTemplatePartName) as Border;
146
Grid popupGrid = this.
GetTemplateChild
(PopupGridTemplatePartName) as Grid;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (5)
691
_resizeThumb =
GetTemplateChild
(ResizeThumbTemplatePartName) as Thumb;
698
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
699
_partToggleButton =
GetTemplateChild
(ToggleButtonTemplatePartName) as RibbonToggleButton;
700
_popup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
711
_submenuScrollViewer =
GetTemplateChild
(SubMenuScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
631
_resizeThumb =
GetTemplateChild
(ResizeThumbTemplatePartName) as Thumb;
638
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
646
_popup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
654
_sideBarBorder =
GetTemplateChild
(SideBarBorderTemplatePartName) as UIElement;
661
_submenuScrollViewer =
GetTemplateChild
(SubMenuScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (4)
309
_mainPanel =
GetTemplateChild
(MainPanelTemplatePartName) as RibbonQuickAccessToolBarPanel;
310
_overflowPanel =
GetTemplateChild
(OverflowPanelTemplatePartName) as RibbonQuickAccessToolBarOverflowPanel;
311
_overflowPopup =
GetTemplateChild
(OverflowPopupTemplatePartName) as Popup;
312
_overflowButton =
GetTemplateChild
(OverflowButtonTemplatePartName) as RibbonToggleButton;
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
67
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
62
_headerButton =
GetTemplateChild
(RibbonSplitButton.HeaderButtonTemplatePartName) as ButtonBase;
75
_toggleButton =
GetTemplateChild
(RibbonSplitButton.ToggleButtonTemplatePartName) as RibbonToggleButton;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (5)
169
_headerButton =
GetTemplateChild
(HeaderButtonTemplatePart) as ButtonBase;
176
_partArrowButton =
GetTemplateChild
(ArrowButtonTemplatePart) as RibbonToggleButton;
177
_highlightLeftBorder =
GetTemplateChild
("HighlightLeftBorder") as Border;
178
_highlightRightBorder =
GetTemplateChild
("HighlightRightBorder") as Border;
270
_partHeaderButton =
GetTemplateChild
(HeaderButtonTemplatePart) as ButtonBase;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
271
_outerBorder =
GetTemplateChild
(OuterBorderTemplatePartName) as Border;
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
71
_contentHost =
GetTemplateChild
(ContentHostTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
74
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (3)
263
_textBlock1 = this.
GetTemplateChild
("PART_TextBlock1") as TextBlock;
264
_textBlock2 = this.
GetTemplateChild
("PART_TextBlock2") as TextBlock;
265
_path = this.
GetTemplateChild
("PART_Path") as Path;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (2)
94
_icon =
GetTemplateChild
(_iconTemplateName) as Image;
102
_clientAreaBorder =
GetTemplateChild
(RibbonWindow._clientAreaBorderTemplateName) as Border;