c# - Extremely slow performance with multiple user controls -


i've put scheduling application similar in style found in outlook, can show schedules of multiple people. have written user control, border gradient filled background & textblock. 1 of these controls added canvas @ set location every appointment. trouble is, have multiple users, multiple appointments , may need display 1000 or appointments @ time. initially, takes absolute age instantiate of these objects, however, can live this.

unfortunately, big problem arises when try scroll through appointments. have couple of buttons scroll left , right , upon clicking these, usercontrols' left position moved left or right number of pixels - can take several seconds between clicking button , repainting(i tried labels test, same).

i guess real question here how implement interface, showing hundreds of controls adequate performance , if isn't achievable, how approach such ui.

one possible option textblock customcontrol. can exact same style have in usercontrol faster loading time.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -