switch sidepanelusercontrol

we are developing plugin with 2021R2 MIP SDK, how to switch sidepanelusercontrol by clicking different tab in smart client? Now we can manually hide/show through Tabclicknotofy,but this method can not hide outer border and name of Sidepanel. Is there more efficient method?

You might be missing SidePanelPlaceDefinition, so please make sure to make sidepanel visible, which can define a side panel placement. Please see this –

virtual List<SidePanelPlaceDefinition> VideoOS.Platform.Client.SidePanelPlugin.SidePanelPlaceDefinitions

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_client_1_1_side_panel_plugin.html&tree=tree_search.html?search=sidepanel

example of usage: Chat sample-

		public override List<SidePanelPlaceDefinition> SidePanelPlaceDefinitions
		{
			get
			{
				return new List<SidePanelPlaceDefinition>() { 
					new SidePanelPlaceDefinition() { 
						WorkSpaceId = VideoOS.Platform.ClientControl.LiveBuildInWorkSpaceId, 
						WorkSpaceStates = new List<WorkSpaceState>() { VideoOS.Platform.WorkSpaceState.Normal, VideoOS.Platform.WorkSpaceState.Setup }
					},
					new SidePanelPlaceDefinition() { 
						WorkSpaceId = VideoOS.Platform.ClientControl.PlaybackBuildInWorkSpaceId, 
						WorkSpaceStates = new List<WorkSpaceState>() { VideoOS.Platform.WorkSpaceState.Normal, VideoOS.Platform.WorkSpaceState.Setup }
					} 
				};
			}
		}
 

You can do this way on Live but not on Playback or vice versa.