Unable to disable bounding boxes/metadata overlays in ImageViewerWpfControl

Hi everyone,

I know something similar has been asked before, but I’m unable to disable metadata overlays in my specific scenario and could use some guidance.

What I’m trying to do: I’m building a custom display UI based on the SCIndependentPlayback sample that shows multiple video feeds in a single cell (1x2 vertical layout).

My implementation:

  • Creating new ImageViewerWpfControl instances programmatically
  • Setting the CameraFQID property
  • Adding controls to a WPF Grid
  • Video feeds display correctly

The problem: Despite subscribing to NewImageViewerControlEvent and setting ShowMetadataOverlay = false early in my plugin’s lifecycle, the ImageViewerWpfControl instances still show metadata overlays/bounding boxes.

What I’ve tried:

  • Setting ShowMetadataOverlay = false in the NewImageViewerControlEvent handler
  • Confirmed the event fires and the property is being set

Question: Is there something specific about programmatically created ImageViewerWpfControl instances that prevents ShowMetadataOverlay from working? Or is there an additional step required when not using the standard ViewItem pattern?

Any help would be appreciated!

Unfortunately there is no current support for disabling the overlay on SDK ImageViewerWpfControl.

The method you have tried is stated in the documentation to be implemented for the Smart Client only.

We will ask the development team to look into implementing a mechanism for doing this for future releases.

Thanks for the quick response Peter. Just to be clear I’m using the ImageViewerWpfControl inside of Smart Client. Maybe there’s another method I should be using to accomplish my goal within Smart Client?

Sorry, I misunderstood. I have reproduced the issue you described and asked the team to look into it. Unfortunately, I don’t see any other way to do it, but the property should of course also work.