I have a list that has the SelectionMode property set to Multiple.
Is it possible to associate the SelectedItem property with a List? not one element?
thanks
I use Samuel's solution for this and it works very well.
http://blog.functionalfun.net/2009/02/how-to-databind-to-selecteditems.html
To do this, you can use the ListBox.SelectedItems property.
<ListBox x:Name="listBox" SelectionMode="Multiple" ItemsSource="{Binding YourCollection}" /> <ListBox ItemsSource="{Binding SelectedItems , ElementName=listBox}"/>
Source: https://habr.com/ru/post/1305343/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1305338/java-can-i-convert-strings-to-byte-arrays-without-a-bom&usg=ALkJrhiZbNNtUGXhz94tjkRBowXDWwQEWwhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1305339/alternatives-to-fread-and-fwrite-for-use-with-structured-data&usg=ALkJrhiEUE0MnCn24RCIxCiwCvR-CMnG7wPostgres - run a request in batches? - loopsHow to add info button in UIToolbar - objective-cRunning a simple VBA script to test the connection - vbahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1305344/tools-to-convert-option-strict-off-code-into-option-strict-on&usg=ALkJrhhFuJzpezTjNmYpp3XL7r0FIfELrAProblem with Qt :: QueuedConnection, the signal delivered after the shutdown - qtWhen do I really need an InamingContainer interface? - asp.netOpening a file from a package URI in WPF - c #Make Compiler Implicit Data Type Conversions Explicit - .netAll Articles