I have created a Workspace and accompanying SidePanel. The side panel configures two properties that are stored locally and globally (private). These properties are used to define the Layout based on these properties. The Workspace layout is defined using ViewAndLayoutItem.Layout and works on loading XProtect Client. But the issue is with trying to dynamically updated the layout as all though events and properties changes are being handled to set ViewAndLayoutItem.Layout again the Workspace layout does not change. When XProtect is restarted the layout for the Workspace gets updated.
The layout of the workspace is only read at startup, so unfortunately it is not possible to dynamically change it.