Bug 550310

Summary: [3.0] ListBox Does Not Support Multi-Selection
Product: [Mono] Moonlight Reporter: Neville Gao <ngao>
Component: xamlAssignee: Swamp Workflow Management <swamp>
Status: VERIFIED FIXED QA Contact: Swamp Workflow Management <swamp>
Severity: Normal    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Neville Gao 2009-10-27 07:42:56 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>
Comment 1 Jeff Stedfast 2009-10-28 20:52:57 UTC
multi-selection is only available in Silverlight 3.0

http://www.silverlightshow.net/tips/Enable-multiple-selection-in-Silverlight-ListBox.aspx
Comment 2 Neville Gao 2009-10-29 06:44:59 UTC
Thanks Jeff, am I going to mark this INVALID or an ENHANCEMENT?
Comment 3 Jeff Stedfast 2009-10-29 15:21:31 UTC
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
Comment 4 Neville Gao 2009-10-30 03:46:24 UTC
Sure, thanks.
Comment 5 Alan McGovern 2010-01-27 18:44:03 UTC
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.