VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
var images = tvRight.GetSelectedImages();
if (images.Length == 0)
return;
for (var count = 0; count < images.Length; count++)
{
tvRight.Images.Remove(images[count]);
}
tvRight.Focus();
tvRight.FocusedIndex = 0;
"tvRight" is the thumbnailviewer control. var images = tvRight.GetSelectedImages();
if (images.Length == 0)
return;
int focusedIndex = tvRight.FocusedIndex;
for (var count = 0; count < images.Length; count++)
{
tvRight.Images.Remove(images[count]);
}
tvRight.Focus();
if (focusedIndex >= 0 && focusedIndex < tvRight.Images.Count)
tvRight.FocusedIndex = focusedIndex;
else
tvRight.FocusedIndex = 0;
Best regards, Alexander
var images = tvRight.GetSelectedImages();
if (images.Length == 0)
return;
for (var count = 0; count < images.Length; count++)
{
tvRight.Images.Remove(images[count]);
}
tvRight.Focus();
// Adding this //
tvRight.SelectedIndices.add(tvRight.FocusedIndex);
Manually adding the selected index based off of the focused index, made the selected thumbnail stay on the 0 indexed image.