Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistencies with metro controls from windows forms controls #122

Open
mmrk09 opened this issue Sep 18, 2019 · 0 comments
Open

Inconsistencies with metro controls from windows forms controls #122

mmrk09 opened this issue Sep 18, 2019 · 0 comments

Comments

@mmrk09
Copy link

mmrk09 commented Sep 18, 2019

_Load events aren't happening on the same sequence anymore. Metro controls are calling _Load on innitializecomponents before information is available and code that worked fine on Windows forms controls just upgrading to metro seems to break them.

I also realized they don't inherit the same base classes, like I can't cast a metro text box to TextBoxBase and retrieve a text value, that code now crashes for invalid cast but should be similar to text box in windows forms control no?

This specific case was creating a control dynamically and then adding it / rendering it, so during construction and initialize components it seemed to fire load but moving code to OnPaint fixed that it just seemed strange it behaved differently then windows forms using the exact same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant