Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
Bindable SelectedItems Collection
posted

I am supprised. The XamGrid does not have a SelctedItems collection, which is bindable keeping MVVM in place.

So I worked out something, which is working like a charm - almost.


My issue is: When there are more Item in the Grid than the amount of rows visable at once, the checkboxes for selection become messed up. The Grid stats checking/unchecking the selection textboxes. It seems the row controls are reused, but my style is not reapplied. If you take a look at the data (bound collection), everything is correct. But what is Show is messed up!

I tried putting the Grid into a ScrollViewer to disable virtualiziation, but it had no effect.

Since there is a lot of code, I would like to attach a sample, rather than trying to copy/paste it here.... Is there a way to do so?

Parents
  • 17475
    Offline posted

    Hello Konstantin,

    Thank you for posting!

    It will be great if you could share a sample project that illustrates the behavior. To upload an archive file you can choose the Options tab when you respond to a thread and click the Add/Update button. You can also create a support ticket (or I could create one on your behalf if you prefer) so that you can upload the sample and it is not public for the community.

Reply Children
No Data