Select to view content in your preferred language

SymbolDisplay causing scrolling ListBox to crash

1092
0
02-14-2011 07:25 AM
TrubieTurner
Emerging Contributor
I have a ListBox Table Of Contents VERY similar to the live sample "Layer List", using a DataTemplate.

We are displaying a general legend for the layers that are added by including a ESRI.ArcGIS.Client.Toolkit.Primitives.SymbolDisplay, and binding that to the layer's Graphics symbol. 

This had been working great for us, but we changed out ListBox to give it a MaxHeight (because our layer count was getting out of control), so a vertical scroll bar now appears after the control exceeds the maximum height.  Unfortunately, after scrolling down through the list and then back up, this now causes our web app to crash with an uninformative (to me at least) XamlParseException.

Has anyone seen anything like this before or found any work arounds? Without the SymbolDisplay everything works as it should without crashing.
0 Kudos
0 Replies