WrapPanel inside of a ListBox


I tried to use the WrapPanel that comes with the Silverlight Toolkit inside of a ListBox. Now the good news is that everything renders just as I would expect, great job!
However I was also expecting the standard ListBox keyboard behavior to stay intact and let me scroll through the ListBox using the keydown and keyup. Of course I was hoping this would also work to the left and right :-)
Anyway the down and up arrow do scroll the list then there are enough items in there but they no longer change the selected item. Is there a way to get the keyboard behavior back?
The XAML I was using looks like this:
<UserControl xmlns:controls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls" x:Class="SilverlightApplication3.Page"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
    <ListBox x:Name="DemoList">
                <controls:WrapPanel />
                        <ItemsPresenter />
                <TextBlock Text="{Binding}"
                           Width="25" />
See the attached solution for the complete code.

file attachments

Closed Aug 11, 2012 at 1:00 AM by RohanTha
Bulk closing issues older than 2 years. Please reactivate if you still have this problem.


wrote Jan 13, 2009 at 10:45 PM

01/09/2009 17:31:53

ListBox's keyhandling code would need to change to enable this scenario.

wrote Feb 18, 2009 at 9:01 PM

wrote Sep 2, 2009 at 5:27 AM

wrote Aug 11, 2012 at 1:00 AM

wrote Feb 22, 2013 at 2:53 AM

wrote May 16, 2013 at 1:36 PM