2 writes to _templateRoot
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
112
_templateRoot
= VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
130
_templateRoot
= null;
13 references to _templateRoot
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (13)
124
RibbonHelper.ClearPseudoInheritedProperties(
_templateRoot
);
125
if (
_templateRoot
!= null)
128
_templateRoot
.ClearValue(RibbonControlService.RibbonPropertyKey);
164
if (
_templateRoot
!= null)
176
RibbonControlService.SetRibbon(
_templateRoot
, RibbonControlService.GetRibbon(this));
177
RibbonHelper.TransferPseudoInheritedProperties(this,
_templateRoot
);
187
get { return
_templateRoot
; }
192
get { return (
_templateRoot
!= null) ? (RibbonControlService.GetLargeImageSource(
_templateRoot
) != null) : false; }
197
get { return (
_templateRoot
!= null) ? (RibbonControlService.GetSmallImageSource(
_templateRoot
) != null) : false; }
202
get { return (
_templateRoot
!= null) ? !string.IsNullOrEmpty(RibbonControlService.GetLabel(
_templateRoot
)) : false; }