145 references to GetTemplateChild
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)
758_monthControl = GetTemplateChild(ElementMonth) as CalendarItem;
System\Windows\Controls\ComboBox.cs (2)
1643EditableTextBoxSite = 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; 439return _expander.GetTemplateChild(ExpanderHeaderPartName) as FrameworkElement;
System\Windows\Controls\ItemsControl.cs (1)
2913ScrollContentPresenter 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)
80DataGridColumnHeader fillerColumnHeader = GetTemplateChild(ElementFillerColumnHeader) as DataGridColumnHeader; 357DataGridColumnHeader 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)
149DependencyObject obj = GetTemplateChild(partName);
System\Windows\Controls\Primitives\ScrollBar.cs (1)
221_track = GetTemplateChild(TrackName) as Track;
System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
750itemsPresenter = 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)
944ScrollContentPresenter viewPort = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter; 1373ScrollBar scrollBar = GetTemplateChild(HorizontalScrollBarTemplateName) as ScrollBar; 1378scrollBar = GetTemplateChild(VerticalScrollBarTemplateName) as ScrollBar; 1594ScrollContentPresenter viewport = GetTemplateChild(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
System\Windows\Controls\SinglePageViewer.cs (1)
102_findToolBarHost = GetTemplateChild(_findToolBarHostTemplateName) as Decorator;
System\Windows\Controls\Slider.cs (3)
1359SelectionRangeElement = GetTemplateChild(SelectionRangeElementName) as FrameworkElement; 1360SelectedRangeElement = GetTemplateChild(SelectedRangeElementName) as FrameworkElement; 1361Track = GetTemplateChild(TrackName) as Track;
System\Windows\Controls\StickyNote.cs (11)
714return GetTemplateChild(SNBConstants.c_CloseButtonId) as Button; 722return GetTemplateChild(SNBConstants.c_IconButtonId) as Button; 730return GetTemplateChild(SNBConstants.c_TitleThumbId) as Thumb; 738return GetTemplateChild(SNBConstants.c_ContentControlId) as UIElement; 746return GetTemplateChild(SNBConstants.c_BottomRightResizeThumbId) as Thumb; 1816return GetTemplateChild(SNBConstants.c_InkMenuId) as MenuItem; 1824return GetTemplateChild(SNBConstants.c_SelectMenuId) as MenuItem; 1832return GetTemplateChild(SNBConstants.c_EraseMenuId) as MenuItem; 1840return GetTemplateChild(SNBConstants.c_CopyMenuId) as MenuItem; 1848return GetTemplateChild(SNBConstants.c_PasteMenuId) as MenuItem; 1856return GetTemplateChild(SNBConstants.c_ClipboardSeparatorId) as Separator;
System\Windows\Controls\TabControl.cs (1)
504return GetTemplateChild(SelectedContentHostTemplateName) as ContentPresenter;
System\Windows\Controls\ToolBar.cs (2)
609DependencyObject child = GetTemplateChild(ToolBarPanelTemplateName); 632DependencyObject child = GetTemplateChild(ToolBarOverflowPanelTemplateName);
System\Windows\Controls\TreeViewItem.cs (2)
806return GetTemplateChild(HeaderPartName) as FrameworkElement; 865return 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; 715ContentControl host = GetTemplateChild("ZoomComboBoxHost") as ContentControl; 750_pageUpButton = GetTemplateChild(_pageUpButtonName) as Button; 767ContentControl 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; 1037ContentControl 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; 768this.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; 303SubmenuPlaceholder = 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)
1308EditableTextBoxSite = 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; 146Grid 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;