Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.


Go Back   Vista Forums > Misc Newsgroups > Avalon

RB

Vista - WPF loading

 
 
07-17-2007   #1
Roman


 
 

WPF loading

My unit test uses XamlReader.Load to load a XAML document from embedded
resource, it takes about 5 seconds before first test is executed - following
test cases are executed fast. It seems as if it takes long time for WPF
components to get loaded/initialized.

Where can I get more info on this process?

What can I do to optimize that?

My System SpecsSystem Spec
07-28-2007   #2
Laurent Bugnion, MVP


 
 

Re: WPF loading

Hi,

Roman wrote:
> My unit test uses XamlReader.Load to load a XAML document from embedded
> resource, it takes about 5 seconds before first test is executed - following
> test cases are executed fast. It seems as if it takes long time for WPF
> components to get loaded/initialized.
>
> Where can I get more info on this process?
>
> What can I do to optimize that?


Is your embedded resource XAML or BAML? Set the "content" to Page in
Visual Studio to compile the XAML in BAML and speed the loading process.

HTH,
Laurent

--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
07-30-2007   #3
Roman


 
 

Re: WPF loading

It's XAML.

Interesting though, that it happens only when I run unit tests from VS 2005
with JetBrain's UnitRun. The same tests ran with FitNesse, or ran on "Vista
on Mac" run just fine. Seems like it might be an issue of a configuration,
rather then WPF.

Any ides what I could use to profile the process?

"Iniialization" part takes about 10 seconds.

Roman

"Laurent Bugnion, MVP" wrote:

> Hi,
>
> Roman wrote:
> > My unit test uses XamlReader.Load to load a XAML document from embedded
> > resource, it takes about 5 seconds before first test is executed - following
> > test cases are executed fast. It seems as if it takes long time for WPF
> > components to get loaded/initialized.
> >
> > Where can I get more info on this process?
> >
> > What can I do to optimize that?

>
> Is your embedded resource XAML or BAML? Set the "content" to Page in
> Visual Studio to compile the XAML in BAML and speed the loading process.
>
> HTH,
> Laurent
>
> --
> Laurent Bugnion [MVP ASP.NET]
> Software engineering, Blog: http://www.galasoft.ch
> PhotoAlbum: http://www.galasoft.ch/pictures
> Support children in Calcutta: http://www.calcutta-espoir.ch
>

My System SpecsSystem Spec
 

RB


Thread Tools


Similar Threads for: WPF loading
Thread Forum
blue screen, vista not loading, error says stopped loading to prot Vista performance & maintenance
Loading ? .NET General
Startup Drivers loading - not loading? Vista General
loading Vista General
Loading WMP Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd