导航服务 - 返回或导航
这可能更多是一个设计问题,但也有技术背景。
在我当前的应用程序中,我有以下视图:
MovieOverview FriendsOverview
该应用程序启动并将显示“我的”电影收藏(通过 MovieOverview 视图),您可以通过应用栏按钮导航到“我的朋友”。
在 FriendsOverview 视图中,我会看到“我的”朋友,当您按下/选择朋友时,我会执行 NavigationService.GoBack 到 MovieOverview 视图,但带有一个参数,说明新选择的用户名(所选朋友)。这将刷新 MovieOverview 视图并显示“朋友”电影收藏。
此时,当您按下朋友应用栏按钮时,我将再次显示“我的”朋友,因此原始未更改的列表(而不是“所选朋友”的朋友)。
这种方法的缺点是,当您选择朋友并返回 MovieOverview 视图时,按硬返回按钮将退出应用程序,因为我从 FriendsOverview 视图编码到 MovieOverview 视图的 NavigationService.GoBack 。
所以我的问题是,你如何设计/技术解决这个问题? 任何提示、建议,一切都欢迎。我需要集思广益一下这个问题...
This is maybe more of a design issue, but has also a technical background.
In my current app I have following views:
MovieOverview
FriendsOverview
The app starts and will show 'my' movie collection ( with the MovieOverview view ) and you'll have a possibility to navigate to 'my friends' through an appbar button.
When on the FriendsOverview view, I'll see 'my' friends and when you press/select a friend, I do a NavigationService.GoBack to the MovieOverview view, BUT with a parameter stating the new selected username ( the selected friend ). This will refresh the MovieOverview view and it will show the 'friend' movie collection.
When at this point you press the friends appbar button, I will show 'my' friends again, so the original unchanged lists ( and not the friends of the 'selected friend' ).
Drawback on this approach, when you selected a friend an get back on the MovieOverview view, pressing the hard BACK button will exit the app, because of the NavigationService.GoBack I coded from the FriendsOverview view to the MovieOverview view.
So my question, how do you design/technical o about this?
Any tips, suggestions, everything is welcome. I need to brainstorm on this...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为,当你在好友页面点击好友时,你不需要调用GoBack。相反,请使用friend 参数调用NavigateTo。在电影页面上,添加标题。用户必须了解现在正在播放哪些电影。当从该页面按返回时,应用程序将转到堆栈中的上一页,即朋友页面。应用栏中的好友按钮也必须在好友电影模式 (GoBack) 中执行相同的操作。如果用户观看电影,应用栏按钮必须调用 NavigateTo 而不是 GoBack。
I think, when you click on a friend on friends page you don't need to call GoBack. Instead, call NavigateTo with a parameter of friend. On the Movie page, add header. User must understand whom movies are shown now. When it press Back from this page, application go to a previous page in stack, i.e. to friends page. Friends button in app bar must also do the same in friend movies mode (GoBack). If user watch him movies, app bar button must call NavigateTo instead of GoBack.