Try looking into the Configuration dump2 plugin sample. It shows how to get view group.
@Chuan Xiang Gu (Milestone Systems)
Do you mean the ConfigDump project? For the XProtect Management Client?
It is that project, and it contains two Smart Client plugins, and you need to look at ConfigDumpViewItemUserControl2.cs. And it is the ConfigDump2 plugin in Smart Client
@Chuan Xiang Gu (Milestone Systems)
I can only locate ConfigDumpViewItemUserControl2.cs in the ConfigDump project (no 2 to be found). I can’t find ConfigDump2, there isn’t such a project.
Another question is, is it possible to fetch the entirety of the View Groups, including sub-trees and it’s related layouts and cameras with an external application using the Milestone SDK (Standalone), in other words, not as a plugin to the Smart Client.
View Groups are used in the Smart Client environment, in standalone or other environments they are not exposed.
(There is only one sample project but with two ViewItemUserControls, which will show and can be used in the Smart Cleint.)