-
Notifications
You must be signed in to change notification settings - Fork 271
forwardWorkspaceActions inside tabpane with connectWorkspaceActions inside Workspace #894
Comments
You're not doing anything wrong, but supporting this level of indirection with how this is implemented right now was kind of mind boggling :) I made an attempt, could you check out the latest revision and apply this patch to see if it works for you? I'd have to perform some more tests to make sure I didn't break anything before merging this. |
Oh, and by the way - don't dock anything in |
I can't right now but I'll get back to you on the patch, thanks in advance. In reply to your other comment, moving the docking commands from |
It's working for me with your sample code, and the patch applied. However, you could use the I'm also wondering if NavigationMode.Tabs would fit your use case better? Will look at #860 when I find time :) |
Can confirm this patch works for me, can't confirm it doesn't break other stuff ;) With regards to using a tabbed workspace: I already am using one, and one of the docked views contains the tabpane "Root tab" from the MVC. So it's a tab inside a tabpane inside a tab in a tabbed workspace, and it works with this patch :D |
It feels like there is a meme in there somewhere :) OK, I will run some tests against the patch tomorrow and hopefully merge. |
So far so good. I've deployed this patch in an internal app so I get a few more users on it, will merge tomorrow if no problems arise. |
Merged :) |
I've stumbled across odd behavior with a very particular situation. I'm docking a view with a
tabpane
as a root inside a workspace and want the workspace actions to be connected to the selected tab, so I useconnectWorkspaceActions
. So far, so good.Now, I want to be able to replace the content of the first tab with that of a different view. As such, I've included a button inside the first tab's view to find an instance of
ViewThree
and usereplaceWith
to do the switch (see code below). Now comes the issue: I've noticed the workspace actions don't match the property values fromViewThree
, even when usingforwardWorkspaceActions
to explicitly delegate them.Here is a complete MVC:
Could you please tell me what I'm doing wrong?
The text was updated successfully, but these errors were encountered: