IgnaceMaes / MaterialSkin

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

Component are black in vb.net #121

Open SoftwelSanjog opened 7 years ago

SoftwelSanjog commented 7 years ago

While using materialskin with vb.net the components like checkbox radiobutton and buttons are black which must be of material design.Insteade tabpages works fine. Is this not supported with vb.net?If i use it with c# its working fine.But i need it working in vb.net.

IgnaceMaes commented 7 years ago

That's strange, there shouldn't be a difference between C# and VB.Net.

You can try compiling the GitHub version, adding it as a reference and cleaning your project.

SoftwelSanjog commented 7 years ago

Dear Sir, Ya there must not be difference but while draging control from toolbox to form the MaterialSkin Controls are black which makes difficult for texts and controls. ignacemaes_materialskin But when i run the application the controls are shown as material Design. 123

I love to use material skin in my project but due to this unknown behaviour made me lil confused. Is there any workaround for it? And lastly it this project will support floating menus and sliding bar in future?

Waiting for ur reply. Best Regards, sanjog

Dutchs commented 7 years ago

I can confirm this, reason being g.Clear(Parent.BackColor) inside the OnPaint() returns "Black" while in the designer. Possible fix would be to use GetApplicationBackgroundColor() in design mode; by replacing:

g.Clear(Parent.BackColor);

with

Color backgroundColor = DesignMode ? SkinManager.GetApplicationBackgroundColor() : Parent.BackColor;
g.Clear(backgroundColor);