Hi Suresh,
Thanks a lot for the sample. I actually have to rewrite the code in your samples into new sample project because the sample won't run. Well in the end, it runs beautifully and that's all that matters.
So basically, user select an accordion item then select a button, and the sample does this:
Grid grid = GetParentItem(sender as DependencyObject) as Grid;
IEnumerable<MediaPlayer> textBoxes = FindVisualChildren<MediaPlayer>(grid)
to get list of control (MediaPlayer). In my case, I want to do certain things (say, to enable a MediaPlayer or to change text of a TextBox) in a selected accordion item right when user selects an accordion item. In the accordion SelectionChanged event handler, I've tried few things and none have worked so far.
Could you do something about it?
Oh, we're of interested in accordion and basic charts lately. I wonder if you could provide one sample of simple basic line chart hosted inside accordion item (like, we have 3 or 4 accordion item where on each item we put a basic line chart with 1 or 2 series of data). That would be awesome.
Thank you,
Handre