Hi,
I using ListView:
ItemWidth="{Binding (ListView.View).ItemWidth, RelativeSource={RelativeSource AncestorType=ListView}}"
MinWidth="{Binding ItemWidth, RelativeSource={RelativeSource Self}}"
ItemHeight="{Binding (ListView.View).ItemHeight, RelativeSource={RelativeSource AncestorType=ListView}}" />
I see 8 elements (checkbox + label), I select 2 or more element, but in code behind if I would get selected item with:
chkListViewSampleStatus.SelectedItems
It returns always one element.
Why?
Thanks.


Roberto Salemi154 reputationPosted Apr 29, 2015, 1:41 AM EDT
Akhil GargRank #772 · 3K reputationPosted Apr 28, 2015, 9:57 AM EDT
Roberto Salemi154 reputationPosted Apr 28, 2015, 11:44 PM EDT
i removed
IsSynchronizedWithCurrentItem="True"
and I added
SelectionMode="Multiple"
ma it not works anyway.
Roberto Salemi154 reputationPosted Apr 29, 2015, 12:04 AM EDT
I understand the problem.
SelectedItems returns me the item of ListView highlighted.
I would know the item where checkbox is selected.