A container for controls placed on the ribbon.
Inheritance: System.Windows.Controls.ContentPresenter
Exemple #1
0
        protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
        {
            base.OnTemplateChanged(oldTemplate, newTemplate);

            if ((oldTemplate != null) && (_partContentPresenter != null))
            {
                RibbonHelper.ClearPseudoInheritedProperties(_partContentPresenter);
                _partContentPresenter = null;
            }
        }
Exemple #2
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     _partContentPresenter = GetTemplateChild(PART_ContentPresenter) as RibbonContentPresenter;
     TransferPseudoInheritedProperties();
 }
Exemple #3
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     _partContentPresenter = GetTemplateChild(PART_ContentPresenter) as RibbonContentPresenter;
     TransferPseudoInheritedProperties();
 }
Exemple #4
0
        protected override void OnTemplateChanged(ControlTemplate oldTemplate, ControlTemplate newTemplate)
        {
            base.OnTemplateChanged(oldTemplate, newTemplate);

            if ((oldTemplate != null) && (_partContentPresenter != null))
            {
                RibbonHelper.ClearPseudoInheritedProperties(_partContentPresenter);
                _partContentPresenter = null;
            }
        }
        private static void OnIsInControlGroupChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            RibbonContentPresenter rcp = (RibbonContentPresenter)d;

            rcp.TransferPseudoInheritedProperties();
        }