views:

35

answers:

0

I have a ToolBar that is bound to an asynchronously populated ObservableCollection. For the ToolBar's ItemTemplate I use a DataTemplate to wrap my bound items in RadioButtons.

What I want to do is programmatically check the first RadioButton in the ToolBar. I have tried using the ToolBar's ItemContainerGenerator but the relevant methods return ContentPresenter instances rather than RadioButtons.

Does anyone know of a way to achieve what seems to me to be a straightforward requirement?