tangxu
2024-12-29 72e75456f8b30ec5b6f355539d9c883b0f810d21
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")]