2 writes to _templateRoot
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (2)
117
_templateRoot
= VisualTreeHelper.GetChild(this, 0) as FrameworkElement;
135
_templateRoot
= null;
13 references to _templateRoot
System.Windows.Controls.Ribbon (13)
Microsoft\Windows\Controls\Ribbon\RibbonContentPresenter.cs (13)
129
RibbonHelper.ClearPseudoInheritedProperties(
_templateRoot
);
130
if (
_templateRoot
!= null)
133
_templateRoot
.ClearValue(RibbonControlService.RibbonPropertyKey);
169
if (
_templateRoot
!= null)
181
RibbonControlService.SetRibbon(
_templateRoot
, RibbonControlService.GetRibbon(this));
182
RibbonHelper.TransferPseudoInheritedProperties(this,
_templateRoot
);
192
get { return
_templateRoot
; }
197
get { return (
_templateRoot
!= null) ? (RibbonControlService.GetLargeImageSource(
_templateRoot
) != null) : false; }
202
get { return (
_templateRoot
!= null) ? (RibbonControlService.GetSmallImageSource(
_templateRoot
) != null) : false; }
207
get { return (
_templateRoot
!= null) ? !string.IsNullOrEmpty(RibbonControlService.GetLabel(
_templateRoot
)) : false; }