How to cancel Activation for any conductor child?

Topics: Getting Started
Jun 6, 2011 at 8:00 PM

What is the best way to cancel activation on any screen child of the Conductor<Screen>.Collection.OneActive descendant?

For example I have a listbox for "Items" and one content control for "ActiveItem" - both from the same conductor (the purpose of all this is just ordinary "tab control" behavior).

And any screen that will be added as child to this conductor will have some kind of "edit" mode that should support warning before deactivation (in case when user try to click on another "tab" in the list box before saving changes in the currently opened "tab") and also prevent "selection" state of the another "tabs" in the listbox until the currently selected will "allow" this.

There is an IGuardClose, but as far as I understand - it is not exactly for described purpose (because "tabs" will not be closed completely - just deactivated).

Or am I missing something obvious?

Jun 7, 2011 at 12:21 PM

If you need to cancel Activation, you have to implement that yourself. There's a forum post showing how to do it.

Jul 17, 2011 at 4:43 PM

Thanks, found it here.