New-UDTabContainer -RenderWhenActive not working?

Can’t get the -RenderWhenActive on the New-UDTabContainer working. Not sure if I missed something, but going to this page. I seed the same problem.

Exception calling “Invoke” with “0” argument(s): “Exception calling “Invoke” with “0” argument(s): “A parameter cannot be found that matches parameter name ‘RenderWhenActive’.””

I’m using version 2.6.2. I’m I missing something?


Welcome to the UD forum.

It seams that the parameter had been renamed or something like this. The parameter should be -RenderOnActive based on the ps1 file.

@adam FYI

-RenderWhenActive was introduced in version 2.8.2. You need to update, at least, to this version.

Version 2.8.2

@augustin.ziegler In the current release version 2.9.0 it is still -RenderWhenActive.
I think in version 3.0.0 it is/will be rename to RenderOnActive

Edit: I think is using the old name for the switch. Perhaps @adam should use an alias in the parameter definition in to be backward compatible :slight_smile:

1 Like

Thanks for pointing this out … couldnt find it in changelog on my mobile :grinning:

1 Like

Thanks for finding that! Totally forgot I could check the code.