Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am using the ExtendedListBox in which i am showing the document images. I have provided the code below.

<local:ExtendedListBox x:Name="lstSourceDocumentThumbs" Style="{StaticResource draggableListBox}" Background="White"
ItemsSource="{Binding Path=PageThumbsList, Mode=TwoWay}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ClickOnSelectedItemAction="KeepSelectionIfItemSelected" MouseLeftButtonUp="MouseButtonUp"
ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionMode="Extended"
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0"
ItemTemplate="{StaticResource tplDistributePageThumb}">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<telerik:RadWrapPanel>
</telerik:RadWrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</local:ExtendedListBox>


When I select multiple document and then click on any one of them then that document get deselected while the other remain selected. But i want that the document which i click should get selected while other get deselected. I can achieve this by using
ClickOnSelectedItemAction="OverrideSelection"
But the problem with this when i go for drag and drop only the document on which i selcted while dragging gets dragged. I want that if i select multiple document and goes for dragging then all these document gets dragged and when i select multiple document and just click any of the document only that document remain selectd.

Please help me how can i acheive this?

Thanks,
Umesh Tayade
Posted

1 solution

This looks like your problem:

ClickOnSelectedItemAction="KeepSelectionIfItemSelected"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900