simple question but i have not found the answer yet :S, i have currently 5 radiobuttons linked with an Image. i want to get the Name of the selected Radio button in my viewmodel. i have currently this XAML:
<StackPanel>
<RadioButton Name="r1">
<StackPanel>
<Image Source="c:\image.png" ></Image>
</StackPanel>
</RadioButton>
<RadioButton Name="r2">
<StackPanel >
<Image Source="c:\image.png"></Image>
</StackPanel>
</RadioButton>
<RadioButton Name="r3">
<StackPanel >
<Image Source="c:\image.png"></Image>
</StackPanel>
</RadioButton>
<RadioButton Name="r4">
<StackPanel >
<Image Source="c:\image.png"></Image>
</StackPanel>
</RadioButton>
<RadioButton Name="r5">
<StackPanel >
<Image Source="c:\image.png" ></Image>
</StackPanel>
</RadioButton>
</StackPanel>
how can i get the Name of the selected RadioButton in my ViewModel? thanks in advance:))