![]() |
performance of TextBlocks |
Post Reply ![]() |
Author | |
vjedlicka ![]() Senior Member ![]() Joined: 04 September 2007 Status: Offline Points: 122 |
![]() ![]() ![]() ![]() ![]() Posted: 11 December 2018 at 11:54am |
StackPanel with 2000 TextBlocks renders too slowly.
Is there a way to make it faster? It seems most time is spent with function CFont::GetLogFont Thanks Vaclav ![]() |
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
![]() |
|
Marco1 ![]() Senior Member ![]() Joined: 16 January 2004 Location: Germany Status: Offline Points: 251 |
![]() ![]() ![]() ![]() ![]() |
Perhaps you can cache the last used font. This will speed up the lookup, if the font hasn't changed. But you have to modify the CJ code, or you could override the according class function. Pls try. |
|
![]() |
|
vjedlicka ![]() Senior Member ![]() Joined: 04 September 2007 Status: Offline Points: 122 |
![]() ![]() ![]() ![]() ![]() |
ok, maybe I should use different element instead of the TextBlock. Thanks Vaclav |
|
Thank you
Vaclav --------------------- ToolkitPro 20.1.0 VS2010-2022, Windows 11 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |