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)
39var textBox = (TextBox)GetTemplateChild(InnerTextBox)!;
PresentationFramework (65)
System\Windows\Controls\Calendar.cs (1)
754_monthControl = GetTemplateChild(ElementMonth) as CalendarItem;
System\Windows\Controls\ComboBox.cs (2)
1633EditableTextBoxSite = 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; 431return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement;
System\Windows\Controls\ItemsControl.cs (1)
2904ScrollContentPresenter 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)
75DataGridColumnHeader fillerColumnHeader = GetTemplateChild(ElementFillerColumnHeader) as DataGridColumnHeader; 352DataGridColumnHeader 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)
144DependencyObject obj = GetTemplateChild(partName);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
205_track = GetTemplateChild(TrackName) as Track;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
740itemsPresenter = 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)
936ScrollContentPresenter viewPort = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter; 1365ScrollBar scrollBar = GetTemplateChild(HorizontalScrollBarTemplateName) as ScrollBar; 1370scrollBar = GetTemplateChild(VerticalScrollBarTemplateName) as ScrollBar; 1586ScrollContentPresenter viewport = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\SinglePageViewer.cs (1)
99_findToolBarHost = GetTemplateChild(_findToolBarHostTemplateName) as Decorator;
System\Windows\Controls\Slider.cs (3)
1348SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1349SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1350Track = GetTemplateChild(TrackName) as Track;
System\Windows\Controls\StickyNote.cs (11)
698return GetTemplateChild(SNBConstants.c_CloseButtonId) as Button; 706return GetTemplateChild(SNBConstants.c_IconButtonId) as Button; 714return GetTemplateChild(SNBConstants.c_TitleThumbId) as Thumb; 722return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 730return GetTemplateChild(SNBConstants.c_BottomRightResizeThumbId) as Thumb; 1800return GetTemplateChild(SNBConstants.c_InkMenuId) as MenuItem; 1808return GetTemplateChild(SNBConstants.c_SelectMenuId) as MenuItem; 1816return GetTemplateChild(SNBConstants.c_EraseMenuId) as MenuItem; 1824return GetTemplateChild(SNBConstants.c_CopyMenuId) as MenuItem; 1832return GetTemplateChild(SNBConstants.c_PasteMenuId) as MenuItem; 1840return GetTemplateChild(SNBConstants.c_ClipboardSeparatorId) as Separator;
System\Windows\Controls\TabControl.cs (1)
494return GetTemplateChild(SelectedContentHostTemplateName) as ContentPresenter;
System\Windows\Controls\ToolBar.cs (2)
600DependencyObject child = GetTemplateChild(ToolBarPanelTemplateName); 623DependencyObject child = GetTemplateChild(ToolBarOverflowPanelTemplateName);
System\Windows\Controls\TreeViewItem.cs (2)
802return GetTemplateChild(HeaderPartName) as FrameworkElement; 861return 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; 708ContentControl host = GetTemplateChild("ZoomComboBoxHost") as ContentControl; 743_pageUpButton = GetTemplateChild(_pageUpButtonName) as Button; 760ContentControl 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; 1030ContentControl 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; 765this.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; 301SubmenuPlaceholder = 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)
1306EditableTextBoxSite = 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; 143Grid 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;