silverlight bubble chart : Change the visual state of the a bubble in a bubble chart through code

397 Views Asked by At

I have created a bubble chart using silverlight toolkit. It has a bubble series which is bound to a data source SampleData1 containing attributes : X,Y,size

Now I have 2 input boxes to read values X and Y from user and a submit button.I want to do following: - when user enters X , Y vales and clicks on submit button, a bubble correspoding to the X,Y values should be highlighted.

As far as I know, I can higlight a bubble by using VisualStateMangaer :

VisualStateManager.GoToState(BubbleRef, "Selected", true);

However, I don't know how to get the bubble reference from the X,Y values. Is there a way to do this ? thanks in advance

Alternative : How to bind a visualStateMangaer to a property (e.g IsHighlighted) such that when I make this property true , Bubble is autmatically higlighted ?

0

There are 0 best solutions below