tangxu
2024-10-22 6a07c4c846ffbb1e93afdf0260e123e4c145f419
WinFrmUI/DPumpHydr.WinFrmUI.Ribbon/Component Classes/RibbonPanel.cs
@@ -194,6 +194,11 @@
        [DefaultValue(true)]
        [Category("Behavior")]
        [Description("Sets if changes to this panel's Enabled flag should be cascaded to its children")]
        public bool CascadeEnabledFlag { get; set; } = true;
      [DefaultValue(true)]
      [Category("Behavior")]
        [Description("Sets if the panel should be enabled")]
        public bool Enabled
        {
@@ -210,13 +215,15 @@
            {
                _enabled = value;
                Owner.Invalidate();
                if (CascadeEnabledFlag)
                {
                foreach (RibbonItem item in Items)
                {
                    item.Enabled = value;
                }
            }
        }
      }
        [DefaultValue(true)]
        [Category("Behavior")]