Click here to Skip to main content
12,892,015 members (53,474 online)
Rate this:
Please Sign up or sign in to vote.
See more: WPF performance
I would like to know which are all the components, dll's and all other things being used to start a simple WPF application.
Also if there is any way by which we can find out the main reasons for delay in startup of WPF application?
I also want to trace the code for time consumption in my Visual Studio 2010.
Posted 1-Nov-11 17:58pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

DLLs… what DLLs? What to reference in your WPF application? Why this is a problem? If you can use Visual Studio, just create a new project from WPF Application template. It will create a skeleton application for you. Look at all the references (what you find will be about the minimum, but certain references are really not needed, such as System.Deployment and System.Data.*; you can remove references one by one to see which ones are redundant) and files of the project — you will learn what you need.

Delay in application startup? I never saw significant delay. Maybe you saw applications doing it wrong. :-) To trace time consumption, use the class System.Diagnostics.Stopwatch, see[^] and the code sample at the end of this MSDN help page.

Espen Harlinn 2-Nov-11 21:02pm
Good advice :)
SAKryukov 2-Nov-11 21:17pm
Thank you, Espen.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Try this :[^]

The DependencyReporter code will give you a list of the DLL's used by your application.
Espen Harlinn 2-Nov-11 21:01pm
5'ed - even if you didn't reference
SAKryukov 2-Nov-11 21:18pm
Yes, a good idea, my 5.
Mehdi Gholam 3-Nov-11 0:44am
I will go and die now!
Mehdi Gholam 3-Nov-11 0:45am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 2 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100