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

  • The function created is:

    The new masterpage is not called.

  • The best practice is to use a singleton of master page. In your case, you should change the properties of the display mode and scrollbars, as shown below. You could use "Stretch" mode and turn off "Display Scrollbars". With this configuration, the target page will fit in the content pane in the full size without scrollbars. Hope this would help.

  • 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.

  • Our Scope is to change in Runtime between two Master Pages without any shutdown.

    If not possibel, we need find other solution, for example, change the content properties in Runtime like Jacky said.

  • If that is the case, then your options are 1 and 3 from my post above.