/// <summary> /// Constructor /// </summary> public ViewSwitchingSnapIn() { // Create the root node ViewSwitchingScopeNode viewSwitchingScopeNode = new ViewSwitchingScopeNode(); this.RootNode = viewSwitchingScopeNode; // attach a view and set as the default viewSwitchingScopeNode.AddViewDescription("Normal Message View", typeof(NormalMessageView)); viewSwitchingScopeNode.ViewDescriptions.DefaultIndex = 0; }