I have followed the example in SCWorkspace plugin example but cannot appear to get my custom usercontrol working. I’m using the sample as my base but have chnaged this part. I just want to fill the view with one user control and not multiple controls or views.
rectangles.Add(new Rectangle(0, 0, 300, 300));
ViewAndLayoutItem.Layout = rectangles.ToArray();
ViewAndLayoutItem.Name = Name;
////add viewitems to view layout
//List<Item> cameraItems = new List<Item>();
//for (int i = 0; i < MAX_MAX_CAMERA_COUNT; i++)
//{
// string configurationString = GetProperty("Camera" + i);
// if (String.IsNullOrWhiteSpace(configurationString))
// {
// Dictionary<String, String> properties = new Dictionary<string, string>();
// FindAllCameras(Configuration.Instance.GetItemsByKind(Kind.Camera), cameraItems);
// properties.Add("CameraId", Guid.Empty.ToString());
// ViewAndLayoutItem.InsertBuiltinViewItem(i, ViewAndLayoutItem.CameraBuiltinId, properties);
// }
// else
// {
// ViewAndLayoutItem.InsertViewItem(i, configurationString);
// }
//}
ViewAndLayoutItem.InsertViewItemPlugin(rectangles.Count - 1, new SCWorkSpaceViewItemPlugin(), new Dictionary<string, string>()); //want to utilize the whole view area.