This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi! What I want to achieve is to have the legend not being the top most element, so when I add a specific foreground item to the chart, this foreground item will be on top of the legend, and not bellow it. The attached picture shows the problem I am having. I want this new foreground element (a docking guide user control that I made) to be the topmost element on my chart, so the legend is not on top of it. Thanks, keep up the good work! |
|
|
Hello This can be done by setting LegendPosition to None, and then adding a Legend instance to the ForegroundElements collection before adding your other custom control. Here is a simple example:
Here I am using our ChartGrid as an example of putting an element over the top of the legend. The ItemsSource and Style properties of the Legend are binding to properties on the chart. "MyChart" is obviously the Name of the chart that the legend is inside. You could use AncestorType bindings rather than ElementName if you wanted to. Let me know if you have further questions about this. Jason Fauchelle |
|