I think I get it now. The fragment shows the top-level control when it's shown, regardless of its visibility when the fragment was previously hidden. So I think you basically have two options:
1) RegisterCallback("StateChange", ... like I posted earlier, and show/hide the control based on an outer variable that will remember whether it should be visible in main scene.
2) Make the control you want to hide a child of the top-level control. The fragment only shows the top-level control. If you have other controls in it, they retain whatever value you gave their SetHidden.
|