1.创建Module, 创建View

 

2.E:\MyStudio\ModuleRoleAccess\ModuleRoleAccess\Constants\WorkspaceNames.cs中

 

    public class WorkspaceNames : MyStudio.Infrastructure.Interface.Constants.WorkspaceNames
    {
        public const string LayoutWorkspace = "LayoutWorkspace";

        public const string ModalWindows = "ModalWindows";

        public const string LeftWorkspace = "LeftWorkspace";

        public const string RightWorkspace = "RightWorkspace";

        public const string LayoutUIElementView = "LayoutUIElementView";

    }

 

3.在ModuleController.cs中 using MyStudio.ModuleRoleAccess.Constants;

        private void AddViews()
        {
            ViewRoleAccess view = ShowViewInWorkspace<ViewRoleAccess>(WorkspaceNames.RightWorkspace);

        }