Closed valimaties closed 2 years ago
Hi,
Thank you for you're work. It looks good.
Did you consider to user Enabled property instead ? From my point of view Enabled property helps user to see a control isn't active for modification.
However if otheres are interested by read-only property, I suggest you to prepare a Pull request.
Thank you, @orapps44 . I've considered Enabled property, but disabled color is not so friendly and not so visible as the colored object. I have made some applications and user's feedback was to not use that object as disabled, but to make them "unchangeable". So I added ReadOnly property in CheckBox object and they are happy now.
I'm really not so familiarized with github options, I don't know how to make pull requests. That's why I've posted code here...
Regards, Vali
Edited: I've looked to a video on youtube and I understood how a pull request is made. I've created a pull request. Thanks.
Hi. I have downloaded project in my Visual Studio and I have made a little "refreshing" on
MaterialCheckBox
object, because I neededReadOnly
option.So, In
MaterialCheckBox.cs
file I have added in properties:In
OnCreateControl
event I have added these lines of code:This is how it works:
Regards, Vali