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

Detlev

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    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.

    Regards

    Stefan

    Add 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

      Stefan