IgnaceMaes / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
2.91k stars 843 forks source link

ReadOnly MaterialSwitch #260

Closed Morphine6962 closed 4 years ago

Morphine6962 commented 4 years ago
 [Category("Appearance")]
        [Browsable(true), EditorBrowsable(EditorBrowsableState.Always)]
        public bool ReadOnly { get; set; }

        protected override void OnClick(EventArgs e)
        {
            if (!ReadOnly) base.OnClick(e);
        }