I'm using a SplitPanel and want to switch between two second panels while keeping the first panel fixed. This doesn't appear directly possible with the APIs and an error occurs when trying to redo SetPane with panel1 - also tried hiding / showing child controls within panels. One workaround is to reuse the same second panel and to dynamically create/remove or show/hide child controls within the panel which is messy and want to avoid. Now thinking if this can be done through SceneManager. Anyone tried something similar ?
OnInitializing()
SplitPanelForm::{
AddControl(*__pSplitPanel);
panel1 = new Panel1();
panel1->Initialize();
__pSplitPanel->SetPane(panel1,SPLIT_PANEL_PANE_ORDER_SECOND);
panel2 = new Panel2();
panel2->Initialize();
}
SplitPanelForm::OnUserEventReceived(id)
{
if (id == Event1)
__pSplitPanel->SetPane(panel1,SPLIT_PANEL_PANE_ORDER_SECOND);
// ERROR - Tizen::Ui::_Control::StartAttaching(Tizen::Ui::_Control&, Tizen::Ui::_ControlArea)(1608) > [E_INVALID_ARG] The child control is already attached to this container.
//SetPane(Tizen::Ui::_Control*, Tizen::Ui::Controls::SplitPanelPaneOrder)(399) > [E_INVALID_ARG] Propagating.
else if (id == Event2)
__pSplitPanel->SetPane(panel2,SPLIT_PANEL_PANE_ORDER_SECOND);
}