Dear Erel,
My app currently contains 2 pages, one is Main and the other is SalesFigure.
The page SalesFigure is triggered from page Main's button.
The SalesFigure is working fine with SideMenuController but smc makes the "< back" button invisible.
Thus, I added a BarButton functioning as "< Back" Button to remedy this issue.
Sub Page1_BarButtonClick (Tag As String)
Dim no As NativeObject = smc
If no.GetField("openSide").AsNumber <> 0 Then
smc.CloseMenu
Return
End If
Select Tag
Case "left"
smc.OpenLeftMenu
Case "back"
Main.NavControl.RemoveCurrentPage
'Only work (i.e. go back to main page) after SetPagesStack
Main.NavControl.SetPagesStack(Array(Main.pgMain))
End Select
End Sub
I found that NavControl would back to Main page by:
1. RemoveCurrentPage and
2. setPagesStack
Otherwise, NavControl stay at original page (i.e. SalesFigure)!