Problem

Large number of items in breadcrumb popup menu?

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

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 6 years ago by Actipro Software Support - Cleveland, OH, USA

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 6 years ago by Detlef Peters - Software Architect, MID GmbH

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

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

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
Information The latest build of this product (2018.1 build 0670) was released 7 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.