0
可能有人請與下面的項目asssit控制,因爲我需要我的單選按鈕是水平不垂直單選按鈕控件中顯示
<ItemsControl Name="rbQuestionAnswer" ItemsSource="{Binding Answers, Mode=TwoWay}" IsEnabled="{Binding IsEnabled, Mode=OneWay}" >
<ItemsControl.ItemTemplate >
<DataTemplate >
<RadioButton GroupName="{Binding SurveyLineID}"
Content="{Binding Answer}"
Tag="{Binding AnswerId}"
Style="{StaticResource RadioButtonStyle}"
IsChecked="{Binding IsSelected, Mode=OneWay}"
Checked="RadioButton_Checked"
Visibility="{Binding Path=IsRadio,Converter={StaticResource BoolConverter}}" >
</RadioButton>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
試過,但佈局仍然是相同的 – Bruie 2011-12-16 15:59:35