146 references to GetTemplateChild
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
231
_webview = (WebView2Control)
GetTemplateChild
(WebViewTemplateChildName);
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)
754
_monthControl =
GetTemplateChild
(ElementMonth) as CalendarItem;
System\Windows\Controls\ComboBox.cs (2)
1633
EditableTextBoxSite =
GetTemplateChild
(EditableTextBoxTemplateName) as TextBox;
1634
_dropDownPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
99
_visualBrushCanvas =
GetTemplateChild
(VisualBrushCanvasTemplateName) as Canvas;
System\Windows\Controls\DatePicker.cs (3)
679
_popUp =
GetTemplateChild
(ElementPopup) as Popup;
694
_dropDownButton =
GetTemplateChild
(ElementButton) as Button;
708
_textBox =
GetTemplateChild
(ElementTextBox) as DatePickerTextBox;
System\Windows\Controls\Expander.cs (1)
312
_expanderToggleButton =
GetTemplateChild
(ExpanderToggleButtonTemplateName) as ToggleButton;
System\Windows\Controls\FlowDocumentReader.cs (3)
94
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as Decorator;
111
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
112
_findButton =
GetTemplateChild
(_findButtonTemplateName) as ToggleButton;
System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
103
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
106
_toolBarHost =
GetTemplateChild
(_toolBarHostTemplateName) as Decorator;
123
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as ScrollViewer;
System\Windows\Controls\GridViewColumnHeader.cs (2)
100
_floatingHeaderCanvas =
GetTemplateChild
(FloatingHeaderCanvasTemplateName) as Canvas;
702
_headerGripper =
GetTemplateChild
(HeaderGripperTemplateName) as Thumb;
System\Windows\Controls\GridViewRowPresenter.cs (1)
458
_viewPort = scrollViewer.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement;
System\Windows\Controls\GroupItem.cs (2)
45
_header = this.
GetTemplateChild
("PART_Header") as FrameworkElement;
431
return _expander.
GetTemplateChild
(ExpanderHeaderPartName) as FrameworkElement;
System\Windows\Controls\ItemsControl.cs (1)
2904
ScrollContentPresenter scp = viewPort.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\MenuItem.cs (1)
2170
_submenuPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
System\Windows\Controls\PasswordBox.cs (1)
938
_passwordBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
System\Windows\Controls\Primitives\CalendarItem.cs (6)
166
_monthView =
GetTemplateChild
(ElementMonthView) as Grid;
167
_yearView =
GetTemplateChild
(ElementYearView) as Grid;
168
_previousButton =
GetTemplateChild
(ElementPreviousButton) as Button;
169
_nextButton =
GetTemplateChild
(ElementNextButton) as Button;
170
_headerButton =
GetTemplateChild
(ElementHeaderButton) as Button;
171
_disabledVisual =
GetTemplateChild
(ElementDisabledVisual) as FrameworkElement;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
233
_leftGripper =
GetTemplateChild
(LeftHeaderGripperTemplateName) as Thumb;
234
_rightGripper =
GetTemplateChild
(RightHeaderGripperTemplateName) as Thumb;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
75
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
352
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
595
_topGripper =
GetTemplateChild
(TopHeaderGripperTemplateName) as Thumb;
596
_bottomGripper =
GetTemplateChild
(BottomHeaderGripperTemplateName) as Thumb;
System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
144
DependencyObject obj =
GetTemplateChild
(partName);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
205
_track =
GetTemplateChild
(TrackName) as Track;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
740
itemsPresenter = templatedParent.
GetTemplateChild
("ItemsPresenter") as ItemsPresenter;
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
1966
_textBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
System\Windows\Controls\ProgressBar.cs (3)
343
_track =
GetTemplateChild
(TrackTemplateName) as FrameworkElement;
344
_indicator =
GetTemplateChild
(IndicatorTemplateName) as FrameworkElement;
345
_glow =
GetTemplateChild
(GlowingRectTemplateName) as FrameworkElement;
System\Windows\Controls\ScrollViewer.cs (4)
936
ScrollContentPresenter viewPort =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1365
ScrollBar scrollBar =
GetTemplateChild
(HorizontalScrollBarTemplateName) as ScrollBar;
1370
scrollBar =
GetTemplateChild
(VerticalScrollBarTemplateName) as ScrollBar;
1586
ScrollContentPresenter viewport =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\SinglePageViewer.cs (1)
99
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
System\Windows\Controls\Slider.cs (3)
1348
SelectionRangeElement =
GetTemplateChild
(SelectionRangeElementName) as FrameworkElement;
1349
SelectedRangeElement =
GetTemplateChild
(SelectedRangeElementName) as FrameworkElement;
1350
Track =
GetTemplateChild
(TrackName) as Track;
System\Windows\Controls\StickyNote.cs (11)
698
return
GetTemplateChild
(SNBConstants.c_CloseButtonId) as Button;
706
return
GetTemplateChild
(SNBConstants.c_IconButtonId) as Button;
714
return
GetTemplateChild
(SNBConstants.c_TitleThumbId) as Thumb;
722
return
GetTemplateChild
(SNBConstants.c_ContentControlId) as UIElement;
730
return
GetTemplateChild
(SNBConstants.c_BottomRightResizeThumbId) as Thumb;
1800
return
GetTemplateChild
(SNBConstants.c_InkMenuId) as MenuItem;
1808
return
GetTemplateChild
(SNBConstants.c_SelectMenuId) as MenuItem;
1816
return
GetTemplateChild
(SNBConstants.c_EraseMenuId) as MenuItem;
1824
return
GetTemplateChild
(SNBConstants.c_CopyMenuId) as MenuItem;
1832
return
GetTemplateChild
(SNBConstants.c_PasteMenuId) as MenuItem;
1840
return
GetTemplateChild
(SNBConstants.c_ClipboardSeparatorId) as Separator;
System\Windows\Controls\TabControl.cs (1)
494
return
GetTemplateChild
(SelectedContentHostTemplateName) as ContentPresenter;
System\Windows\Controls\ToolBar.cs (2)
600
DependencyObject child =
GetTemplateChild
(ToolBarPanelTemplateName);
623
DependencyObject child =
GetTemplateChild
(ToolBarOverflowPanelTemplateName);
System\Windows\Controls\TreeViewItem.cs (2)
802
return
GetTemplateChild
(HeaderPartName) as FrameworkElement;
861
return
GetTemplateChild
(ItemsHostPartName) as ItemsPresenter;
PresentationUI (20)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
115
_editableTextBox =
GetTemplateChild
("PART_EditableTextBox") as TextBox;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (19)
691
_toolBar =
GetTemplateChild
(_toolBarName) as Grid;
708
ContentControl host =
GetTemplateChild
("ZoomComboBoxHost") as ContentControl;
743
_pageUpButton =
GetTemplateChild
(_pageUpButtonName) as Button;
760
ContentControl host =
GetTemplateChild
("PageTextBoxHost") as ContentControl;
795
_pageDownButton =
GetTemplateChild
(_pageDownButtonName) as Button;
811
_actualSizeButton =
GetTemplateChild
(_actualSizeButtonName) as Button;
827
_pageWidthButton =
GetTemplateChild
(_pageWidthButtonName) as Button;
843
_wholePageButton =
GetTemplateChild
(_wholePageButtonName) as Button;
860
_twoPageButton =
GetTemplateChild
(_twoPageButtonName) as Button;
876
_thumbnailButton =
GetTemplateChild
(_thumbnailButtonName) as Button;
892
_rmButton =
GetTemplateChild
(_rmButtonName) as Button;
908
_saveAsButton =
GetTemplateChild
(_saveAsButtonName) as Button;
924
_digitalSignaturesMenuItem =
GetTemplateChild
(_digitalSignaturesMenuItemName) as MenuItem;
940
_infoBar =
GetTemplateChild
(_infoBarName) as FrameworkElement;
957
_infoBarCloseButton =
GetTemplateChild
(_infoBarCloseButtonName)
980
_infoBarDigSigButton =
GetTemplateChild
(_infoBarSignaturesButtonName) as Button;
1005
_infoBarRMButton =
GetTemplateChild
(_infoBarRMButtonName) as Button;
1030
ContentControl host =
GetTemplateChild
("PART_FindToolBarHost") as ContentControl;
1052
_scrollViewer =
GetTemplateChild
(_contentHostName) as ScrollViewer;
System.Windows.Controls.Ribbon (59)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (8)
739
_itemsPresenter =
GetTemplateChild
("ItemsPresenter") as ItemsPresenter;
740
_itemsPresenterPopup = this.
GetTemplateChild
(ItemsPresenterPopupTemplateName) as Popup;
742
_tabHeaderItemsControl = this.
GetTemplateChild
("TabHeaderItemsControl") as RibbonTabHeaderItemsControl;
748
_groupHeaderItemsControl = this.
GetTemplateChild
(Ribbon.ContextualTabGroupItemsControlTemplateName) as RibbonContextualTabGroupItemsControl;
765
this.RibbonTitlePanel = this.
GetTemplateChild
(Ribbon.TitlePanelTemplateName) as RibbonTitlePanel;
766
_qatTopHost = this.
GetTemplateChild
(Ribbon.QatHostTemplateName) as UIElement;
767
_titleHost = this.
GetTemplateChild
(Ribbon.TitleHostTemplateName) as UIElement;
768
_helpPaneHost = this.
GetTemplateChild
(Ribbon.HelpPaneTemplateName) as UIElement;
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (5)
300
_popup = this.
GetTemplateChild
(PopupTemplateName) as Popup;
301
SubmenuPlaceholder = this.
GetTemplateChild
(SubmenuTemplateName) as FrameworkElement;
302
_popupToggleButton = this.
GetTemplateChild
(PopupToggleButtonTemplateName) as RibbonToggleButton;
303
_footerPaneHost = this.
GetTemplateChild
(FooterPaneTemplateName) as ContentPresenter;
304
_auxiliaryPaneHost = this.
GetTemplateChild
(AuxiliaryPaneTemplateName) as ContentPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonButton.cs (1)
65
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonCheckBox.cs (1)
65
_checkBorder =
GetTemplateChild
(CheckBorderTemplatePart) as Border;
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
1306
EditableTextBoxSite =
GetTemplateChild
(EditableTextBoxTemplateName) as TextBox;
Microsoft\Windows\Controls\Ribbon\RibbonControl.cs (1)
125
_partContentPresenter =
GetTemplateChild
(PART_ContentPresenter) as RibbonContentPresenter;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (3)
118
_itemsPresenter = (ItemsPresenter)
GetTemplateChild
(ItemsHostName);
119
_filterContentPane =
GetTemplateChild
(FilterContentPaneTemplatePartName) as ContentPresenter;
120
_scrollViewer =
GetTemplateChild
(RibbonGallery.ScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryCategory.cs (2)
208
_itemsPresenter = (ItemsPresenter)
GetTemplateChild
(ItemsHostName);
209
_headerPresenter = (ContentPresenter)
GetTemplateChild
(HeaderPresenterName);
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (7)
122
_headerContentPresenter = this.
GetTemplateChild
(HeaderContentPresenterTemplatePartName) as ContentPresenter;
123
_collapsedDropDownButton = this.
GetTemplateChild
(CollapsedDropDownButtonTemplatePartName) as FrameworkElement;
124
_templateContentControl =
GetTemplateChild
(TemplateContentControlTemplatePartName) as ContentControl;
125
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
126
_collapsedGroupPopup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
134
_hotBackgroundBorder =
GetTemplateChild
(HotBackgroundBorderTemplatePartName) as Border;
143
Grid popupGrid = this.
GetTemplateChild
(PopupGridTemplatePartName) as Grid;
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (5)
688
_resizeThumb =
GetTemplateChild
(ResizeThumbTemplatePartName) as Thumb;
695
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
696
_partToggleButton =
GetTemplateChild
(ToggleButtonTemplatePartName) as RibbonToggleButton;
697
_popup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
708
_submenuScrollViewer =
GetTemplateChild
(SubMenuScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (5)
628
_resizeThumb =
GetTemplateChild
(ResizeThumbTemplatePartName) as Thumb;
635
_itemsPresenter =
GetTemplateChild
(ItemsPresenterTemplatePartName) as ItemsPresenter;
643
_popup =
GetTemplateChild
(PopupTemplatePartName) as Popup;
651
_sideBarBorder =
GetTemplateChild
(SideBarBorderTemplatePartName) as UIElement;
658
_submenuScrollViewer =
GetTemplateChild
(SubMenuScrollViewerTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (4)
304
_mainPanel =
GetTemplateChild
(MainPanelTemplatePartName) as RibbonQuickAccessToolBarPanel;
305
_overflowPanel =
GetTemplateChild
(OverflowPanelTemplatePartName) as RibbonQuickAccessToolBarOverflowPanel;
306
_overflowPopup =
GetTemplateChild
(OverflowPopupTemplatePartName) as Popup;
307
_overflowButton =
GetTemplateChild
(OverflowButtonTemplatePartName) as RibbonToggleButton;
Microsoft\Windows\Controls\Ribbon\RibbonRadioButton.cs (1)
65
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (2)
60
_headerButton =
GetTemplateChild
(RibbonSplitButton.HeaderButtonTemplatePartName) as ButtonBase;
73
_toggleButton =
GetTemplateChild
(RibbonSplitButton.ToggleButtonTemplatePartName) as RibbonToggleButton;
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (5)
166
_headerButton =
GetTemplateChild
(HeaderButtonTemplatePart) as ButtonBase;
173
_partArrowButton =
GetTemplateChild
(ArrowButtonTemplatePart) as RibbonToggleButton;
174
_highlightLeftBorder =
GetTemplateChild
("HighlightLeftBorder") as Border;
175
_highlightRightBorder =
GetTemplateChild
("HighlightRightBorder") as Border;
267
_partHeaderButton =
GetTemplateChild
(HeaderButtonTemplatePart) as ButtonBase;
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
269
_outerBorder =
GetTemplateChild
(OuterBorderTemplatePartName) as Border;
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
69
_contentHost =
GetTemplateChild
(ContentHostTemplatePartName) as ScrollViewer;
Microsoft\Windows\Controls\Ribbon\RibbonToggleButton.cs (1)
72
_image =
GetTemplateChild
(ImageTemplatePart) as Image;
Microsoft\Windows\Controls\Ribbon\RibbonTwoLineText.cs (3)
260
_textBlock1 = this.
GetTemplateChild
("PART_TextBlock1") as TextBlock;
261
_textBlock2 = this.
GetTemplateChild
("PART_TextBlock2") as TextBlock;
262
_path = this.
GetTemplateChild
("PART_Path") as Path;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (2)
89
_icon =
GetTemplateChild
(_iconTemplateName) as Image;
97
_clientAreaBorder =
GetTemplateChild
(RibbonWindow._clientAreaBorderTemplateName) as Border;