64 references to GetTemplateChild
PresentationFramework (64)
src\Framework\System\Windows\Controls\Calendar.cs (1)
759
_monthControl =
GetTemplateChild
(ElementMonth) as CalendarItem;
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1646
EditableTextBoxSite =
GetTemplateChild
(EditableTextBoxTemplateName) as TextBox;
1647
_dropDownPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
104
_visualBrushCanvas =
GetTemplateChild
(VisualBrushCanvasTemplateName) as Canvas;
src\Framework\System\Windows\Controls\DatePicker.cs (3)
672
_popUp =
GetTemplateChild
(ElementPopup) as Popup;
687
_dropDownButton =
GetTemplateChild
(ElementButton) as Button;
701
_textBox =
GetTemplateChild
(ElementTextBox) as DatePickerTextBox;
src\Framework\System\Windows\Controls\Expander.cs (1)
317
_expanderToggleButton =
GetTemplateChild
(ExpanderToggleButtonTemplateName) as ToggleButton;
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (3)
100
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as Decorator;
117
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
118
_findButton =
GetTemplateChild
(_findButtonTemplateName) as ToggleButton;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
107
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
110
_toolBarHost =
GetTemplateChild
(_toolBarHostTemplateName) as Decorator;
127
_contentHost =
GetTemplateChild
(_contentHostTemplateName) as ScrollViewer;
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
107
_floatingHeaderCanvas =
GetTemplateChild
(FloatingHeaderCanvasTemplateName) as Canvas;
696
_headerGripper =
GetTemplateChild
(HeaderGripperTemplateName) as Thumb;
src\Framework\System\Windows\Controls\GridViewRowPresenter.cs (1)
465
_viewPort = scrollViewer.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as FrameworkElement;
src\Framework\System\Windows\Controls\GroupItem.cs (2)
55
_header = this.
GetTemplateChild
("PART_Header") as FrameworkElement;
441
return _expander.
GetTemplateChild
(ExpanderHeaderPartName) as FrameworkElement;
src\Framework\System\Windows\Controls\ItemsControl.cs (1)
2916
ScrollContentPresenter scp = viewPort.
GetTemplateChild
(ScrollViewer.ScrollContentPresenterTemplateName) as ScrollContentPresenter;
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2229
_submenuPopup =
GetTemplateChild
(PopupTemplateName) as Popup;
src\Framework\System\Windows\Controls\PasswordBox.cs (1)
962
_passwordBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (6)
172
_monthView =
GetTemplateChild
(ElementMonthView) as Grid;
173
_yearView =
GetTemplateChild
(ElementYearView) as Grid;
174
_previousButton =
GetTemplateChild
(ElementPreviousButton) as Button;
175
_nextButton =
GetTemplateChild
(ElementNextButton) as Button;
176
_headerButton =
GetTemplateChild
(ElementHeaderButton) as Button;
177
_disabledVisual =
GetTemplateChild
(ElementDisabledVisual) as FrameworkElement;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeader.cs (2)
239
_leftGripper =
GetTemplateChild
(LeftHeaderGripperTemplateName) as Thumb;
240
_rightGripper =
GetTemplateChild
(RightHeaderGripperTemplateName) as Thumb;
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (2)
80
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
357
DataGridColumnHeader fillerColumnHeader =
GetTemplateChild
(ElementFillerColumnHeader) as DataGridColumnHeader;
src\Framework\System\Windows\Controls\Primitives\DataGridRowHeader.cs (2)
601
_topGripper =
GetTemplateChild
(TopHeaderGripperTemplateName) as Thumb;
602
_bottomGripper =
GetTemplateChild
(BottomHeaderGripperTemplateName) as Thumb;
src\Framework\System\Windows\Controls\Primitives\DatePickerTextBox.cs (1)
149
DependencyObject obj =
GetTemplateChild
(partName);
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
226
_track =
GetTemplateChild
(TrackName) as Track;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
756
itemsPresenter = templatedParent.
GetTemplateChild
("ItemsPresenter") as ItemsPresenter;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
2006
_textBoxContentHost =
GetTemplateChild
(ContentHostTemplateName) as FrameworkElement;
src\Framework\System\Windows\Controls\ProgressBar.cs (3)
348
_track =
GetTemplateChild
(TrackTemplateName) as FrameworkElement;
349
_indicator =
GetTemplateChild
(IndicatorTemplateName) as FrameworkElement;
350
_glow =
GetTemplateChild
(GlowingRectTemplateName) as FrameworkElement;
src\Framework\System\Windows\Controls\ScrollViewer.cs (4)
971
ScrollContentPresenter viewPort =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
1401
ScrollBar scrollBar =
GetTemplateChild
(HorizontalScrollBarTemplateName) as ScrollBar;
1406
scrollBar =
GetTemplateChild
(VerticalScrollBarTemplateName) as ScrollBar;
1640
ScrollContentPresenter viewport =
GetTemplateChild
(ScrollContentPresenterTemplateName) as ScrollContentPresenter;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
104
_findToolBarHost =
GetTemplateChild
(_findToolBarHostTemplateName) as Decorator;
src\Framework\System\Windows\Controls\Slider.cs (2)
1282
SelectionRangeElement =
GetTemplateChild
(SelectionRangeElementName) as FrameworkElement;
1283
Track =
GetTemplateChild
(TrackName) as Track;
src\Framework\System\Windows\Controls\StickyNote.cs (11)
724
return
GetTemplateChild
(SNBConstants.c_CloseButtonId) as Button;
732
return
GetTemplateChild
(SNBConstants.c_IconButtonId) as Button;
740
return
GetTemplateChild
(SNBConstants.c_TitleThumbId) as Thumb;
748
return
GetTemplateChild
(SNBConstants.c_ContentControlId) as UIElement;
756
return
GetTemplateChild
(SNBConstants.c_BottomRightResizeThumbId) as Thumb;
1853
return
GetTemplateChild
(SNBConstants.c_InkMenuId) as MenuItem;
1861
return
GetTemplateChild
(SNBConstants.c_SelectMenuId) as MenuItem;
1869
return
GetTemplateChild
(SNBConstants.c_EraseMenuId) as MenuItem;
1877
return
GetTemplateChild
(SNBConstants.c_CopyMenuId) as MenuItem;
1885
return
GetTemplateChild
(SNBConstants.c_PasteMenuId) as MenuItem;
1893
return
GetTemplateChild
(SNBConstants.c_ClipboardSeparatorId) as Separator;
src\Framework\System\Windows\Controls\TabControl.cs (1)
505
return
GetTemplateChild
(SelectedContentHostTemplateName) as ContentPresenter;
src\Framework\System\Windows\Controls\ToolBar.cs (2)
619
DependencyObject child =
GetTemplateChild
(ToolBarPanelTemplateName);
642
DependencyObject child =
GetTemplateChild
(ToolBarOverflowPanelTemplateName);
src\Framework\System\Windows\Controls\TreeViewItem.cs (2)
807
return
GetTemplateChild
(HeaderPartName) as FrameworkElement;
864
return
GetTemplateChild
(ItemsHostPartName) as ItemsPresenter;