Image viewer control enable digital zoom not working.

I have a windows form containing multiple cameras that are related to a playback user control. My problem is i need to enable the camera zoom functionality for the image viewer control but it is not working. I am using the code bellow.

 var imageViewerControl =ClientControl.Instance.GenerateImageViewerControl();
 
  imageViewerControl.EnableMouseControlledPtz = true;
 
  imageViewerControl.EnableMousePtzEmbeddedHandler = true;
 
  imageViewerControl.EnableDigitalZoom = true;
 
  imageViewerControl.EnableScrollWheel = true;
 

also is it possible to enable the double click to maximize the image viewer control or do i have to implement my own logic.

best regards,

Gaby

Please see Video Preview sample, this might be helpful -

https://doc.developer.milestonesys.com/html/index.html?base=samples/videopreview_sample.html&tree=tree_1.html