Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

WPF loading

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 07-17-2007   #1 (permalink)
Roman
Guest


 

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
Old 07-28-2007   #2 (permalink)
Laurent Bugnion, MVP
Guest


 

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
Old 07-30-2007   #3 (permalink)
Roman
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading ? Tom .NET General 4 09-06-2008 02:22 AM
loading chey Vista General 0 04-20-2008 08:19 AM
blue screen, vista not loading, error says stopped loading to prot altimber Vista performance & maintenance 0 12-27-2007 04:36 PM
Loading WMP flyfisherpa Vista music pictures video 1 05-30-2007 08:46 PM
Vista loading =?Utf-8?B?dmFud2luaw==?= Vista General 8 08-28-2006 02:19 PM


Vistax64.com 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 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51