PreInit SyntaxEditor for better User Experience

SyntaxEditor for WPF Forum

Posted 11 years ago by Alexander
Version: 13.1.0583
Avatar

Hello. 

I want to make some kind of background preinitialization of syntax editor, so the first initialization takes less time.

Could you advise me the proper way of doing this?

/Alexander

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Alexander,

A main thing for the SyntaxEditor control itself is just getting the assemblies loaded into .NET (since they only load when first used).  So you could reference some type in the SyntaxEditor assembly and that will in turn load the Shared, Text, SyntaxEditor assemblies in memory.  After that it should be quick.

If you are using the .NET Languages Add-on, you might want to set up your project assembly and load references early on too.  But per our samples that can also be done in a background thread.


Actipro Software Support

The latest build of this product (v24.1.2) was released 1 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.