HighTechTalks DotNet Forums  

Connection problems

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Connection problems in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Paul
 
Posts: n/a

Default Connection problems - 06-29-2009 , 04:01 PM






Problem descriprion:

We are trying to create an application in which we have two TreeView
controls connected together via a custom control that renders lines between
TreeViewItems (we draw lines between the source and destination TreeView).
The connections are rendered properly but we are facing a major performance
issue. It takes close to 1 second to refresh the entire page. We have
profiled the application using DotTrace and we realized that the most
expensive function was ItemsControl.ContainerFromItem.



Basically, each time the tree is rendered, we are going through our
connection list(around 8000 items) and for each connection we try to get the
container for the source and the destination using the function
ContainerFromItem defined in the class ItemsControl.

We would like to know if we are using a good approach to connect two
TreeView controls together or if there is a faster way to actually retrieve
each items container's bounding box.



-----------------------------------------------------------------------------
Less Spam Better enjoyable experience
Visit : news://spacesst.com

Reply With Quote
  #2  
Old   
Alvin Bruney [ASP.NET MVP]
 
Posts: n/a

Default Re: Connection problems - 07-14-2009 , 06:31 AM






There is a WPF newsgroup here:
http://social.msdn.microsoft.com/Forums/en-US/wpf/threads

--
Regards,
Alvin Bruney

Auther Plug
OWC Blackbook now on download at www.lulu.com/owc

"Paul" <Paul (AT) discussions (DOT) microsoft.com> wrote

Quote:
Problem descriprion:

We are trying to create an application in which we have two TreeView
controls connected together via a custom control that renders lines
between
TreeViewItems (we draw lines between the source and destination TreeView).
The connections are rendered properly but we are facing a major
performance
issue. It takes close to 1 second to refresh the entire page. We have
profiled the application using DotTrace and we realized that the most
expensive function was ItemsControl.ContainerFromItem.



Basically, each time the tree is rendered, we are going through our
connection list(around 8000 items) and for each connection we try to get
the
container for the source and the destination using the function
ContainerFromItem defined in the class ItemsControl.

We would like to know if we are using a good approach to connect two
TreeView controls together or if there is a faster way to actually
retrieve
each items container's bounding box.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.