Link with the information I found:
link
In the ViewModel
I have a collection to generate the Items
and an object for the SelectedItem
In the view, a ListBox
to show the Items
converted to RadioButton
like this:
<ListBox ItemsSource="{Binding Continents}"
SelectedItem="{Binding Selected}"
BorderThickness="0"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
Background="Transparent">
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<RadioButton Content="{Binding Name}"
IsChecked="{Binding RelativeSource={
RelativeSource TemplatedParent}, Path=IsSelected}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.ItemContainerStyle>
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<ei:CallMethodAction TargetObject="{Binding}" MethodName="CBSelectionChanged"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ListBox>
I hope it serves someone.