.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

wpfperf tool Visual Profiler not populating element tree

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :WPF
I'm trying to use the latest version of the Performance Profiling Tools for WPF that are listed here: http://windowsclient.net/wpf/perf/wpf-perf-tool.aspx#profiler

For some reason the element tree is not being populated when I start my app using the Launch Process.  I do see the chart for Application CPU Usage update and scroll by, however I would like to see which elements in particular are eating up CPU time.

Does anyone have a solution?

View Complete Post

More Related Resource Links

Visual Case Tool - UML Tutorial

The Class Diagram

The class diagram is core to object-oriented design. It describes the types of objects in the system and the static relationships between them.

Logical- and Visual Tree

Elements of a WPF user interface are hierarchically related. This relation is called the LogicalTree. The template of one element consists of multiple visual elements. This tree is called the VisualTree. WPF differs between those two trees, because for some problems you only need the logical elements and for other problems you want all elements.

Performance: Find Application Bottlenecks with Visual Studio Profiler


We will introduce you to the Visual Studio Profiler by walking through a sample performance investigation, pinpointing code inefficiencies in some sample applications.

Hari Pulapaka and Boris Vidolov

MSDN Magazine March 2008

{ End Bracket }: C# to Visual Basic Translation Tool


Having talked to thousands of developers who use the Microsoft . NET Framework, I've heard one consistent complaint: "I really wish all the samples were written in my programming language. " Nothing is more frustrating than having braved the wilds of Internet searches for a snippet of code that does exactly what you want but is written in a language you don't use.

John Robbins

MSDN Magazine August 2004

Viewing the Visual Tree in the Debugger

I recently posted an article to CodeProject which discusses a debugger visualizer.  It allows you to view the visual tree while debugging, inspect every property of any element in the tree, as well as view a snapshot image of any element.  I call it Woodstock, because it's like a scaled down version of Snoop.  Here's the article, if you're interested: http://www.codeproject.com/useritems/WoodstockForWPF.asp

How to fix "Validation(): Element 'xxxx' is not supported" Visual Studio 2010

Since about a month ago,I started to get validation warnings at design time on asp.net server controls (any control actually) within the html design view for VS 2010,intellisense on all controls would not work at all,the messages look like this: Validation(): Element 'Label' is not supported. Validation(): Element 'GridView' is not supported ....etc The compilation done successfully but the warnings still exist and intellisense is not working at the source tab I tried to reset the settings of VS 2010 ,disabled all extensions and few other ideas but none of them solved the issue,I got stuck. I did a search over the internet about this issue and found this article on Doug Kennard's blog: http://www.gotknowhow.com/articles/fix-validation-element-not-supported-visual-studio-2010 Splendid,that article is a life savior.

visual tree hit test not working

I have a sketch/designer type of program. The user can sketch shapes. These shapes are polygons in a user control. I have an edge and a vertex class which generate the point collection for my polygons and connect the vertices to outline the polygon. I am using a selection box in an adorner to selection those controls and move them around. When I release the mouse after drawing the selection box, I run a hit test by calling VisualTreeHelper.HitTest. I pass in new     GeometryHitTestParameters(new RectangleGeometry(rect)) where the rectangle is the selection box, and this chooses the appropriate shapes. The user can take the selected shapes and "join" them to unselected shapes. In this situation. The shapes still remain in separate user controls, but they now share the common edges and vertices. At this point, my selection stops working intermittently. When I try to debug my hit test, I never hit the break points in my HitTestFilterCallback, HitTestResultCallback, or in my overridden HitTestCore functions. Then if I drag an edge or vertex, the selection may or may not start working again. I am not even sure how to debug this type of problem anymore. I have checked the visual tree for the canvas holding my shape controls and everything seems right.   Please help.  

How to implement Design-Time drag & drop from Custom Visual Studio Tool Window to WPF Designer

Hi, Could someone tell me if it is possible to intercept a design time drop event coming from a custom Visual Studio tool window onto the cider design surface? I am hoping to use the same API's as those used by the Visual Studio 2010 'Data Sources' tool window, which provides drag & drop data-binding between classes and WPF/Silverlight controls. My requirement is to pass a DataObject (used with the WPF DragDrop API) from my custom Visual Studio WPF tool window treeview to my custom WPF control at design time, read the data and do some binding/XAML manipulation of my own. The drag aspect is simple enough but I can't work out how to accept a drop event from anything other than the toolbox. At the moment, when I drag my treenode over the design surface it shows the 'cannot drop here' cursor. If someone could give me some insight into how the 'Data Sources' tool window allows dragging of treenodes to controls I would really appreciate it. It is obviously possible but which API's are used and are they public? Thanks in advance, Paul  

New appliesTo attribute on assemblyBinding element in web.config after upgrading website for Visual


We just upgraded from Visual Studio 2008 to Visual Studio 2010. We had to convert our projects and solutions, but we thought no changes were need for regular ASP.net websites. However, Visual Studio 2010 modified the assemblyBinding element in the web.config file to include the appliesTo attribute. The website is still targeting .net 3.5 and will be for a little while until we upgrade everything to 4.0.

So, is this attribute necessary? If so, why? We had hoped we didn't need to update all our websites solely for the purpose of using Visual Studio 2010 as we have a lot of them. We'll take the effort to upgrade them when we finally change them to target .net 4.0. Until then, is the web.config change necessary?

Here is what we had in web.config before the upgrade to Visual Studio 2010:

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

Cross Reference in the Visual Tree


Hi all , I have some problem when I want to make some visual element in my user control to static . 

I found it is because the visual in the visual tree can only have 1 parent , if rendered a new user control , the old one will lose the static elements .

Do you have any idea that I can share the static element in the user controls ?


Upload tool in visual studio


Hi, I am new and getting started on visual studio, may I know how to use the upload tool in visual studio? The database and codes needed, thanks alot. 

login tool from visual studio web developer 2008



I am trying to follow a tutorial, in the tutorial I must drop a login status on the stage, then later I must drop a login from the toolbox, then later I would have to test the page, when I put something as a username and as a password I have this error:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

SQLExpress database file auto-creation error

I understand that the database is not being created but why?? isn't supposed to be automatically generated? I go to the app folder and there is nothing over there, also for the database explorer there are no new databases defined, is it something to do with my con

Can't find visual studio 2010 profiler video training or webcast



Is there any training video or webcast teaches how to use VS 2010 profiler to find the an asp.net application's memory and performance issues?

Thank you,

Restoring a Visual Element to its initial position in WPF application


Hi there, I'm implementing a WPF application where one can drag & drop a element in a designated area where this element is restored to its initial position. The drag & drop is working, and already have the events for the dragging and drop actions; my problem is how to restore the visual element to the correct position, previously stored (of course).

The elements are within a Grid, and it looks like this is preventing me of using the Canvas.GetLeft()and Canvas.SetLeft() methods, and because of that I've saved the initial Margin property as the origin for the object. The problem resides in the fact if I, set the margin to the origin in the drop event, it won't work.

If someone know how to do this please let me know.

Note: the reason for the fact that I'm using the grid is because the application has a fullscreen function and I want the elements to be rearranged in the same position in fullscreen or window modes.

Visual tree with collapsed elements -Performance



I have a very large and deep visual tree.I had an issue with tab switch .It use to build the visual elements when the focus is on a tab and then drop those elemnts when you move away from the tabs.

To overcome this performance challenge I stop dropping and adding the visual elemnts when tab is switched I just made it "collapsed".

Though now the tree is huge but it should not hit performance.

Are you aware of any performance if you have large visual tree with collapsed elemnts .Is it better or worse or same as those collapsed elements not in the tree.


Visual Studio 2010 & Asp.NET Configuration Tool not working together



I am running VS2010 and trying to make the asp.net configuration tool to work.

The problem is: when I click on in in the menu, the server goes up but nothing happens.

If I type the url (localhost:port) in the browser, I get the following error:


Server Error in '/asp.netwebadminfiles' Application.

HTTP Error 404 - Not Found.


and if I copy and paste the /asp.netwebadminfiles to the url (localhost:port/asp.netwebadminfiles), the page loads with the following message:

" An error was encountered. Please return to the previous page and try again. "


I've looked in the event log, but no error message.


Could anyone help out me with it?



How can I force the visual tree to load


I have a tab control and it's not loading the controls on any of the hidden tabs until the user clicks on that tab. But I have code when the form first opens that's walking the visual tree setting properties on various controls.  But since it can't see what's not loaded yet, the properties don't get set. And then when the user switches to that tab, they're not rendering correctly.

How can I force the tab control, expander control, etc to force load their visual tree?


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend