protected virtual void TryInjectQueryString(object viewModel, object view)
{
var page = view as Page;
if (page == null)
return;
var viewModelType = viewModel.GetType();
foreach(var pair in page.NavigationContext.QueryString)
{
var property = viewModelType.GetProperty(pair.Key);
if(property == null)
continue;
property.SetValue(viewModel, MessageBinder.CoerceValue(property.PropertyType, pair.Value), null);
}
}