c# - Create or load controls without freezing the window -


when browser opened, before it's loaded, can use controls others being loaded (the address bar appears and, while bookmarks loaded, can type in it).

i'm making personal browser, , don't know how perform that. imagined creating controls in thread, discovered that's not possible.

in last question (where discovered above), received answer talking attribute, reflection, async/await modifiers , observable collection closest solution , i'll study them yet. in new question, receive others suggestions of how made (allow user use window , controls while others being created/loaded).

thanks in advance.

actually believe process of loading ui part of controls isn't heavy one.

in other hand, loading data later bound control the problem.

you can't draw controls outside ui thread, can load heavy data, preload resources or calculation in background thread.

while heavy controls' data prepared hit ui in background thread, ui still responsive.

for example, guess web browsers html dom parsing in background thread , stream results in real time ui thread. is, address bar , other ui components responsive because ui thread isn't stressed.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -