Hey all,

I'm writing a unit test (MS's Silverlight Unit Test framework) and am
wanting to simulate pressing a button by using ToggleButtonAutomationPeer.
I've no problems with the code one I have the instance of the button, but
I'm having problems figuring out how to get a particular button from a cell
in a row in a datagrid. I'm trying to use the VisualTreeHelper to walk down
through the tree but dataGrid.Columns[0] doesn't give me back a dependency
object to walk, its giving back a template. (DataGridTemplateColumn to be
exact).

Anyone know how I can either walk the tree, or do a FindName or something to
get a particular cell/row's button out?

I'd paste my code but it pretty much doesn't work anyway, I think I'm
tackling it wrong. Searching hasn't turned up any hints yet...

cheers,
Stephen
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to