Can some one point me to a example(s) of setting up a legend to allow multiple rows when the orientation is set to Horiontal. By default if there a more items in the legend than will fit in the width of the legend you get a scroll bar by default.
I would like to have the item that do not fit in the width wrap to additional rows.
Thanks
Rob
Hello Rob,
Thank you for posting!
After researching this I could suggest you to change the content of the Legend’s ContentPresenter to WrapPanel using the default style provided in the Infragistics folder under the DataChart folder. I believe that in this forum post similar issue was discussed and Stefan’s modified sample could be useful for you: http://es.infragistics.com/community/forums/t/64083.aspx
Please feel free to let me know if you have any questions.
Hi Rob,
I am just checking your progress on the issue.
If you require any further assistance, please do not hesitate to ask.
Yes i had found that sample and tried to make it work but using Silverlight it does not work where as a WPF application works fine.
I was hoping for a similar solution that worked with Silverlight. As a temporary solution i was able to create multiple legends and control which series was associated with each legend. The problem with this is i have to remove the borders for the legends to create the apperance of one legend area vs multiple. This also makes it difficult to flow the legends when the chart is resized.
I have been looking into this further. Currently there is no build in functionality for changing the orientation of the legend items. I am sorry for the misunderstanding I had not noticed you are using Silverlight. The approach with changing the ItemTemplate after going through the visual tree elements would not work as the Loaded event is not guaranteed to occur after the template is applied and the ContentPresenter will not have any content at that point.
I have logged this as a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI13060075.