forked from reactiveui/ReactiveUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Routing
wendazhou edited this page Aug 4, 2012
·
2 revisions
ReactiveUI.Routing is a simple .Net routing framework. It works in a ViewModel-first fashion, with automatic view location.
ReactiveUI.Routing is traced through ETW (event tracing for windows) with an EventSource named ReactiveUI.Routing.
Set the DataContext property of views to bind to their ViewModel property as follows:
DataContext={Binding Path=ViewModel, RelativeSource={RelativeSource Self}}
this prevents binding warnings, and also prevents recursive inclusion in case of nested RoutedViewHosts.