0
Silverlight를 사용하고 있습니다. 개체 목록이있는 내 뷰 모델에 관찰 가능한 컬렉션이 있습니다. 라디오 버튼 그룹과 어떻게 바인딩합니까?Silverlight - 라디오 버튼 목록으로 Observable 컬렉션을 바인딩하는 방법을 알고 싶습니다.
아래에서 시도했지만 라디오 버튼 그룹처럼 작동하지 않습니다.
<UserControl.Resources>
<DataTemplate x:Key="TableItemTemplate">
<StackPanel Width="auto" Orientation="Horizontal" >
<RadioButton Margin="1,1,1,1"
>
</RadioButton >
<TextBlock Text="{Binding Caption}"></TextBlock>
</StackPanel>
</DataTemplate>
</UserControl.Resources>
<ListBox Margin ="3,3,3,3"
ItemsSource="{Binding OptionLIst}"
ItemTemplate="{StaticResource TableItemTemplate}"
>
</ListBox>