![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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 Specs![]() |
| | #2 (permalink) |
| 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 Specs![]() |
| | #3 (permalink) |
| 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 Specs![]() |
![]() |
| 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 |