![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |