You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it will be done.
If you want to use this project, you have to fork it and modify controls on your needs.
As an idea, in the controls folder, look for MaterialSwitch class and look for the below constants, modify them and see what you got:
privateconstintTHUMB_SIZE=22;privateconstintTHUMB_SIZE_HALF=THUMB_SIZE/2;privateconstintTRACK_SIZE_HEIGHT=(int)(14);privateconstintTRACK_SIZE_WIDTH=(int)(36);privateconstintTRACK_RADIUS=(int)(TRACK_SIZE_HEIGHT/2);
....
private const int RIPPLE_DIAMETER =37;
If I were you, I would redefine those constants as fields, I would create an enumerable, let's say SwitchSize having "small, medium, large" values. Then create a public property to be able to resize the switch control, this property must be visible in design time ([Browsable(true)]), as when you change the size it will automatically change in your form too (change those int fields and call invalidate() in the setter).
Need small materialswitch
The text was updated successfully, but these errors were encountered: