This is a migrated thread and some comments may be shown as answers.

Editing LegendItem Style and losing LegendItemMarker issue

3 Answers 52 Views
Chart
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 30 Aug 2011, 12:14 PM
Hi there,

I'm having some issues editing the ChartLegendItem style in that I'm wanting to include a HyperLinkButton after the Legend Title which a user will be able to click to remove the series from the chart (I currently use drag/drop to add the series which works well).

My problem is that when I edit a copy of the ChartLegendItem style, the next time I view the control the LegendItemMarker doesn't display or render when run.

Steps to reproduce:
1. Place a ChartLegendItem item on a blank page
2. In Blend, right click on the ChartLegendItem and select Edit Template > Edit a Copy.
3. Close the page in Blend, then reopen it.

At this stage the LegendItemMarker has disappeared and no longer renders.  

If someone can get this working, could they please post the XAML code of the style?

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 31 Aug 2011, 11:08 AM
Can anyone help with this one, please?  I'm really stuck as I need to a HyperLinkButton the each LegendItem in the legend.
0
Evgenia
Telerik team
answered on 02 Sep 2011, 11:40 AM
Hello David,

Have you seen our demo where we have retemplated the LegendItems style to add checkbox. You can use the style and the approach as a guide for your scenario.

Greetings,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
David
Top achievements
Rank 1
answered on 02 Sep 2011, 12:41 PM
Oh wow, can't believe I missed that example.  Thanks so much for the reply, it's much appreciated.
Tags
Chart
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or