Catel UserControl Delay...

Topics: Questions
Nov 19, 2012 at 4:41 PM

Hi Geert,

i've upgraded my application from an older catel release to the changeset e540c50382df and i encountered a heavy delay on opening a view (Catel UserControl).

this.SkipSearchingForInfoBarMessageControl = true  does not help anymore.

I think Catel is searching something in the visual/logic tree because the view itself is loaded very fast but displaying takes a long time....

Could you please take a look at this issue?

Thanks a lot!

 

 

Coordinator
Nov 19, 2012 at 6:05 PM

I had this issue as well last week. If you don't use an info bar message control, you should set 2 options (this is all out of my head, so I hope they are right):

UserControl.DefaultSkipSearchingForInfoBarMessageControlValue = true;

UserControl.DefaultCreateWarningAndErrorValidatorValue = false;

Nov 20, 2012 at 1:25 PM

Hi Geert,

thanks for tip.

Adding

this.CreateWarningAndErrorValidatorForViewModel = false;
this.SkipSearchingForInfoBarMessageControl = true;

before
this.InitializeComponent();

in the view ctor helps.
Coordinator
Nov 20, 2012 at 2:55 PM

Yes, indeed. And to prevent you from having to do this in every view, you can use the default static properties and set them at startup of your app.