Bugzilla – Bug 550310
[3.0] ListBox Does Not Support Multi-Selection
Last modified: 2010-01-27 18:44:03 UTC
In XAML file, when setting SelectionMode is "Multiple" or "Extended", multi-selection doesn't work. I build moonlight with mxap command. <UserControl x:Class="ListBoxSample.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"> <TextBlock x:Name="textBlock" Height="30" Margin="50,50,0,0" VerticalAlignment="Top"/> <ListBox Name="listBox" Height="200" Margin="50,100,150,0" VerticalAlignment="Top" SelectionMode="Extended"> <ListBoxItem Content="Item 1"/> <ListBoxItem Content="Item 2"/> <ListBoxItem Content="Item 3"/> </ListBox> </Grid> </UserControl>
multi-selection is only available in Silverlight 3.0 http://www.silverlightshow.net/tips/Enable-multiple-selection-in-Silverlight-ListBox.aspx
Thanks Jeff, am I going to mark this INVALID or an ENHANCEMENT?
I guess we could mark it as an enhancement, but it's not really necessary. We'll close this when we implement this functionality in Moonlight 3.0
Sure, thanks.
An initial implementation (which is not fully complete!) has been committed in r150308. If there are any specific bugs/issues you come across, please file a separate bug report for each and I'll deal with them.