Windows Vista Forums

WPF loading
  1. #1


    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

  2. #2


    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

  3. #3


    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

WPF loading problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
blue screen, vista not loading, error says stopped loading to prot altimber Vista performance & maintenance 1 13 Nov 2009
Loading ? Tom .NET General 4 06 Sep 2008
Startup Drivers loading - not loading? MPS Vista General 0 02 Sep 2008
loading chey Vista General 0 20 Apr 2008
DVD's not loading!! Srt Vista performance & maintenance 5 02 Sep 2007