Page 1 of 1

Automatic copying between thumbnailviewers

Posted: Fri Dec 11, 2020 1:26 pm
by anovak
Hello,
I want to use two thumbnailviewers (A, B).
I want it to be automatically transferred to thumbnailviewer 'B' when I select an image in thumbnailviewer 'A'. If the selection is lost in 'A', delete it from 'B'. Can this be automated?

Thanks.
Attila

Re: Automatic copying between thumbnailviewers

Posted: Fri Dec 11, 2020 2:10 pm
by Alex
Hello Attila,

Yes, this is possible.

ThumbnailViewer.SelectedIndices property returns collection of indices of the selected thumbnails as instance of class SelectedThumbnailImageIndexCollection. You can subscribe to the SelectedThumbnailImageIndexCollection.Changed event and understand that selected thumbnails are changed in thumbnail viewer 'A'. After this you can do necessary task in thumbnail viewer 'B'.

Best regards, Alexander

Re: Automatic copying between thumbnailviewers

Posted: Fri Dec 11, 2020 5:03 pm
by anovak
Thanks for the quick reply Alex.

Best regards,
Attila