dennismagno / metroframework-modern-ui

My humble attempt to bring the new Modern UI alias Metro UI of Windows 8 to .NET Windows Forms applications.
http://dennismagno.github.io/metroframework-modern-ui
Other
865 stars 1.08k forks source link

Form ControlBox is not Re-Styled #19

Open sashkode opened 7 years ago

sashkode commented 7 years ago

After the Form is loaded, if the Style changes, the ControlBox button styles aren't updated.

In MetroForm AddWindowsButton(), I found that MetroButtons are created, but their Style and Theme are set to the current ones of the Form and never updated.

newButton.Style = Style;
newButton.Theme = Theme;

Using Default might resolve this issue?

dennismagno commented 7 years ago

I tried it and it is working fine.

Jiraiyah commented 5 years ago

I can confirm that buttons are not working for me, This is the designer, not only button but also notice the top section with labels http://prntscr.com/lu8pmr and this is run time : http://prntscr.com/lu8pz5 not is working !, every now and then i see red on button but when i move the mouse on the section, it's lost

Jiraiyah commented 5 years ago

ok, identified the issu http://prntscr.com/lu8tlo the button is sitting inside a panel, when the whole window losses focus, it's using my colors giving back focus to the window, the color is there, but as soon as the PANEL gets focused, the button looses style