Print Page | Close Window

performance of TextBlocks

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23782
Printed Date: 28 April 2024 at 12:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: performance of TextBlocks
Posted By: vjedlicka
Subject: performance of TextBlocks
Date 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



Replies:
Posted By: Marco1
Date Posted: 13 December 2018 at 11:23am
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.



-------------
Product: XTP 18.3.0 on VS 2017
Platform: VS 2017 / Windows 10 (64bit)


Posted By: vjedlicka
Date Posted: 14 December 2018 at 5:37am
ok, maybe I should use different element instead of the TextBlock.

Thanks
Vaclav



-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net