Skip to Content

How to Set a View within a ViewContainerUIElement programatically?

Hi there,

After having found the solution how to put views into a ViewContainerUIElement, now the next question arises:

I have got a ViewContainerUIElement with two possible views in it. I have put both views into the container, but only one appears (great, that's what I want).

But I have to determine at runtime which of the views has to appear. How can I set this?

Thanks in advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2004 at 03:00 PM

    Hi Detlev,

    one possible solution is to put an additional view without any elements into the container, which has to be the default view (the darker blue one 😉) and which is used to trigger the navigation to the desired view. Create two outbound plugs from the trigger view to the inbound plugs of the corresponding target views and decide which one you want to fire.

    Hope that helps.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Detlev Beutner

      Hi Detlev,

      yes, i revised my last post after 10 minutes, since i created a test project to ensure my final suggestion (in the meantime, i've learned to be as accurate as possible answering your posts 8-)). So, it's a 1:1 finally (Sorry, i'm just kidding).

      Best regards


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.