Large number of items in breadcrumb popup menu?

Navigation for WPF Forum

Posted 12 years ago by Detlef Peters - Software Architect, MID GmbH
Version: 12.1.0560
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

Hello,

I was told by a colleague of mine that he encountered a massive slow-down of his application when the popup menu of the breadcrumb was filled with a large number of items. Using a Snooping Tool, we found out that the items panel which holds the menu items does not support virtualization.

Can you confirm this? If so, is there a way to enable virtualization?

Regards,

  D. Peters

Comments (3)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Detlef,

The popup menu are regular ContextMenu objects that are constructed programmatically.  So they probably don't have virtualization on by default.  Perhaps you could add a template override for ContextMenu in the Breadcrumb's Resources that would tell it to use a virtualized panel though?


Actipro Software Support

Posted 12 years ago by Detlef Peters - Software Architect, MID GmbH
Avatar

Hi again,

does that mean I have to do something like this:

<Breadcrumb.Resources>
   <Style TargetType=ContextMenu>
       <Setter Property="Template">
          ....Setter Value here...
       </Setter>
   </Style>
</Breadcrumb.Resources>

 Could you please give me an example how to use e.g. VirtualizingStackPanel instead of the default ItemsPanel?

Thanks in advance,

  D. Peters

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Detlef,

We haven't tried to do that before on a ContextMenu but posts like this should help you:

http://stackoverflow.com/questions/11164507/load-large-data-set-with-wpf-contextmenu-for-richtextbox


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.