我在我的主窗口上有一個框架。我有一個ItemsControl,在其中顯示垂直菜單,用戶可以從中選擇任何項目,並在框架中顯示與特定項目對應的頁面。隱藏導航欄,但記得在wpf框架中的歷史
這效果很好。
當我設置NavigationUIVisibility爲自動:
1) Navigation Bar is displayed at the top.
2) If I enter some data in a textbox in page1 and then if I navigate away to page2.
Now again if I navigate to page1, the text in the textbox is there.
我要的是:
1) Hide the Navigation bar. For that I have set NavigationUIVisibility to Hidden.
This works good.
2) I want frame to remember history as I discussed in point 2 in above topic.
So, How to remember history when NavigationUIVisibility is set to hidden.
Or is there any other way to remember history when navigation bar is hidden.
我懷疑只有在通過導航欄導航時才保留「文本」,但如果使用代碼導航,則不會保留文本框文本。 –