Change the Master Page on workspace in RUNTIME

Hello

We need to open a page in content. However, the dimention of content is different than normal page.

We create a new MasterPage, that is only header and content.

Using a configurated button is bavigation pane, we would like change the masterpage and call a new content.

Its possible?

If yes, please, tell me that how we can do that.

Regards

Parents
  • Hi Miguel,

    It is not quite clear what you are trying to do. In general, the workspace philosophy is that each monitor has only a single master page on it. So if you have 2 screens, you will have 2 master pages. All content is then displayed within those master pages.
    Some customers have chosen to continue with popup windows in some cases - which you can display content into.

    My thoughts from your question:

    1. Is the page bigger or smaller than all the other pages? if so, you can use the content pane properties to add scrollbars if it is bigger, change stretch mode etc. See Jacky's answer.

    2. If you are trying to change the current master page dynamically, then that is definitely not advised. Master pages are allocated "workspace slots" and from memory only cleared up on shutdown of runtime.

    3. If there is concern about how the content will look if, it is shrunken, or clipped (if scrollbars), then you can also consider Collapsing / Resizing panes. The Workspace Examples in the Toolbox show you how to do this. This would potentially allow you to have a larger content pane if thatis what you wanted.

Reply
  • Hi Miguel,

    It is not quite clear what you are trying to do. In general, the workspace philosophy is that each monitor has only a single master page on it. So if you have 2 screens, you will have 2 master pages. All content is then displayed within those master pages.
    Some customers have chosen to continue with popup windows in some cases - which you can display content into.

    My thoughts from your question:

    1. Is the page bigger or smaller than all the other pages? if so, you can use the content pane properties to add scrollbars if it is bigger, change stretch mode etc. See Jacky's answer.

    2. If you are trying to change the current master page dynamically, then that is definitely not advised. Master pages are allocated "workspace slots" and from memory only cleared up on shutdown of runtime.

    3. If there is concern about how the content will look if, it is shrunken, or clipped (if scrollbars), then you can also consider Collapsing / Resizing panes. The Workspace Examples in the Toolbox show you how to do this. This would potentially allow you to have a larger content pane if thatis what you wanted.

Children
No Data