0

I have a combobox inside a datagrid in silverlight4. I have placed a check box inside data template of combobox to make combobox multi-selectable. Now i want to get the values for selected items in combobox.So how i can do that ?

Here is my code :

 <ComboBox  Name="cbxitmes" Height="23" Width="255" IsSynchronizedWithCurrentItem="False"
                 ItemsSource="{Binding Path=GetItems,Mode=TwoWay}" 
                 SelectedValue="{Binding Mode=TwoWay, Path=myname}"  SelectedValuePath="myvalue">
                    <ComboBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding myname}"  ></CheckBox>                            
                        </DataTemplate>                        
                    </ComboBox.ItemTemplate>
  </ComboBox>

Please Help me guys.

Thanks,

4

1 回答 1

0

看看这个例子,它可能会有所帮助http://www.codeproject.com/Tips/452756/Add-checkbox-inside-Combobox-in-Silverlight

于 2013-01-14T20:24:44.697 回答