I'm using the RadGridView - RowsDetailsTemplate - where I have a DataTemplate setup.
Having NO LUCK trying to reference/access controls I have in my DataTemplate from code behind (all the controls do have x:Name=). I want to be able to handle a Click event on a button I have in my DataTemplate ... can't find anyway to do this. (VB side).
I've read several similar questions but no one actually posted a solution or sample code.
Some suggestions so far:
1. Setup a class to handle the event and bind to that class -- don't really want to setup an entire class just to handle a simple click event from one control.
2. Another suggest was load the DataTemplate and "Find" the control and then add a handler for the control -- again seems like a lot of work to and I'm guessing pretty slow performance wise.
I'm relatively new to Silverlight 4 so there is a good possibility I'm missing something obvious, but how is one supposed to access DataTemplate controls and events from code behind?