Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
This what i am trying to achieve with WPF. A textblock as title and below buttons in a wrappanel .The problem is that this needs scrolling etc. I have achieved this using ItemsControl and binding for each group. I have an ItemsControl that has a stackpanel as paneltemplate and its itemtemplate is a textblock and a wrappanel .
 
It works but it is slow at instantiation at slow intel gma + atom machines when items are many . It seems that rendering isnt the problem but creation of the Visual Tree. So my only bet here is to create a custom panel with virtualization i guess?
 
Here is what i have done.http://pastebin.com/u8C7ddP0[^]
 
Above solution is slow at some machines.
 
I am looking for a solution that it would take max 100ms at slow machines to create.
To all who knows the answer of my question please help me.I really need to have an answer of this.
 
Thank you
Posted 1-Jul-13 23:32pm
Comments
NightCodeStalker at 2-Jul-13 23:21pm
   
To all experts ==== Please help me solve this out.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,382


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 2 Jul 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100