This question is locked. New answers and comments are not allowed.
Hello, I'm using the RadDataBoundListBox control in my WP8.1 app, and I have a little problem with the itemReorder feature.
If I tap on an item in the listbox it correctly gets selected and deselected (I have a method that sets the selectedItem to null if I tap on the element I had selected before), and if I hold on an item, the itemReorder feature gets enabled correctly.
The issue is that if I pan up or down in the listBox, the itemReorder triggers on its own on the item I was on with my finger right before lifting it up to scroll the list.
This is the XAML for my ListBox:
The ItemSource for the ListBox is a List of a custom class i created, and it consists in a UserControl with a StackPanel that contains a couple of UI elements.
Am I missing something here or is it a problem with the Listox?
Thanks in advance for your help :)
Cheers,
Sergio
If I tap on an item in the listbox it correctly gets selected and deselected (I have a method that sets the selectedItem to null if I tap on the element I had selected before), and if I hold on an item, the itemReorder feature gets enabled correctly.
The issue is that if I pan up or down in the listBox, the itemReorder triggers on its own on the item I was on with my finger right before lifting it up to scroll the list.
This is the XAML for my ListBox:
<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,0,19,0"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <TextBlock Text="Tap and hold on an item to reorder the list" Foreground="Gray" Margin="0,0,0,10" FontSize="16" FontWeight="Thin"/> <Primitives:RadDataBoundListBox Grid.Row="1" IsItemReorderEnabled="True" ItemTap="listBox_ItemTap" x:Name="listBox"/></Grid>The ItemSource for the ListBox is a List of a custom class i created, and it consists in a UserControl with a StackPanel that contains a couple of UI elements.
Am I missing something here or is it a problem with the Listox?
Thanks in advance for your help :)
Cheers,
Sergio