有人可以幫助我嗎? 我想綁定列表框的Datatemplate中的RadioButton列表,但它不作爲RadioButtonList,即它可以同時選擇多個RB。 我在網上看了,但找不到正確的答案 感謝所有幫助綁定RadioButtonList
我的XAML是如下
<ItemsControl x:Name="itcPayTypes" DockPanel.Dock="Top" BorderThickness="0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<RadioButton Content="{Binding PayTypeName}" Click="RadioButton_Click_1"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
歡迎來到SO。拼寫檢查,格式和郵政編碼。 – Paparazzi 2013-03-04 15:57:55
你說得對,我的英文寫得不好 – IFink 2013-03-04 17:12:38