问题
I'm continuing ReactiveUI explorations on Windows Phone, and have came to a moment where I need to do a navigation between pages. Obviously, I want to do this with the ReactiveUI. Unfortunately, googling (and binging) around didn't give any samples on that. The most useful thing I was able to find is "Play for Windows" on GitHub, which have the routing implemented. But I don't think that technique could apply to the Windows Phone programming, since navigation between WP pages is very different from desktop stuff. In Play, as far as I understand, navigation is basically done by switching visibility of different UserControls. I don't think it's a proper way to do things in WP.
On the other hand, looking at the ReactiveUI sources, I see that WP7 routing code indeed is the same as the desktop one. This leads me to a confusion.
So my question is, how ReactiveUI.Routing is intended to be used on WP7? Also it would be very nice to have some samples, best practices, whatever, to take a look at.
Thanks in advance.
回答1:
There are no special affordances for WP7's broken View-based routing that you have to use - you'll have to build this piece yourself (You don't have to use RxUI.Routing to use ReactiveUI, it's an optional feature)
If you build it in a reusable way though and would like to include it in ReactiveUI, let me know!
来源:https://stackoverflow.com/questions/12445763/reactiveui-routing-and-windows-phone