0
我在silverlight4中的組合框的數據模板中有一個複選框。現在我想要在複選框的selectedindex改變它的事件。所以我怎麼能做到這一點?如何在silverlight4中的組合框的數據模板內獲取控件
這裏是我的代碼:
<ComboBox Height="Auto" x:Name="CB_Categories" SelectionChanged="CB_Categories_SelectionChanged" Tag="">
<ComboBox.ItemTemplate>
<DataTemplate>
<CheckBox IsChecked="False" Content="{Binding Name}" CommandParameter="{Binding ProductCategoryID}" Click="CheckBox_Click" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
請幫我傢伙。
感謝,
感謝您的幫助Martin ...... –