I have been working on adding a Legend on the Map in our application. I have been succesful in defining LegendItem and building the Legend except for one small thing. The text for some of our LegendItems can be fairly lengthy and it seems to be truncated when it exceeds the Width of the legend layer.
We would like to be able to have the text displayed on multiple lines in the legend using a word wrap. I found the example application for MapSuite that uses a custom TextStyle called WordWrappedTextStyle. I added this class to our code and created a WordWrappedTextStyle as the LegendItem.TextStyle property. However nothing changed in the way the legend is displayed. The long text string still get truncated at the edge of the legend. I added a breakpoint in the debugger at the beginning of the "DrawCore" method in the WordWrappedTextStyle class but my application never enters this overridden method.
Can anyone tell me why the legend still works with the WordWrappedTextStyle but it nevers calls the overridden DrawCore? Is there a different way to to get the text on multiple lines in a Legend?
Any ideas would be helpful.
Thanks
Richard