c# - UI Initialization Slow in Silverlight -
i have large silverlight application divided "tabs", each of them divided further subtabs. xap file don't take long download, , first screen login. after logging in, however, app's rootvisual set "mainpage", contains main tabs. since each of these contains subtabs, , each subtab contains graphical user controls, every ui component of app loaded when main page loads. thus, login "freezes" 30 seconds while main page loads usercontrols app. best way split entire app's ui isn't loaded @ initialization? thinking not call each controls initializecomponent() until it's parent tab clicked on? or not loading main tab's "subtabs" until clicked on? surely there must better way split up.
when use tabcontrol silverlight takes care of these things. doesn't render control until tabitem selected. make sure haven't written anycode inside constructor of control. codes should go on loaded event of cotrol whether usercontrol/custom control hence able imporve performance of application.
let me know if still have same issue.
cheers! vinod
Comments
Post a Comment