Cannot get cameras from random selected view.

Hi,

How can I access ViewAndLayoutItem-> View->ViewItems, as I only can see them in the debugging mode View-> ViewItems, but cannot use it in the code. It is not accessible. I am trying to get Cameras FQIDs from random views I open.

For example in the debugging mode(Watch list) I can find all cameras in the view: ((VideoOS.RemoteClient.Application.MIP.Manager.SCViewAndLayoutItem)_currentView).View.ViewItems

In the code ((ViewAndLayoutItem)_currentView).View

Cannot access it.

Is there a way to get all cameras FQIDs from random views?

Thank you in advanced.

Try have a look at the Smart Client View and Window tool sample: https://doc.developer.milestonesys.com/html/index.html?base=samples/smartclientview_windowtool_sample.html&tree=tree_1.html

In the View Dump tab I think you will find exactly what you are asking for.