darauf hätt ich auch kommen können
vielen dank
*edit*
Das binding vom SelectedIndex auf mein int Property bekomm ich hin, nur irgendwie bekomm ich das Binding vom ListBoxItem.IsSelected auf RadioButton.IsChecked nicht hin.
Das Hier wäre meine ListBox
XML-Daten
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
| <ListBox Grid.Column="3" Grid.Row="6" SelectedIndex="{Binding Backup}" Style="{StaticResource CXMControl}"> <RadioButton GroupName="rbgrpBackUp" x:Name="rbAllways" IsChecked="{Binding ListBoxItem.IsSelected}"> <TextBlock Style="{StaticResource CXMCaption}" Text="Allways create backups"/> </RadioButton> <RadioButton GroupName="rbgrpBackUp" x:Name="rbAsk" IsChecked="{Binding ListBoxItem.IsSelected}"> <TextBlock Style="{StaticResource CXMCaption}" Text="Ask everytime"/> </RadioButton> <RadioButton GroupName="rbgrpBackUp" x:Name="rbNever" IsChecked="{Binding ListBoxItem.IsSelected}"> <TextBlock Style="{StaticResource CXMCaption}" Text="Never create backups"/> </RadioButton> </ListBox> |
*edit2*
ich hab das ganze jetzt über einen converter gelöst. aber trotzdem danke.