Пример #1
0
 private Dictionary<string, string> ExtractParameters(Route route, UriInfo uriInfo)
 {
     var parameters = new Dictionary<string, string>();
     for (int i = 0; i < route.Segments.Count; i++)
     {
         if (route.Segments[i].IsVariable)
         {
             parameters.Add(route.Segments[i].Name.ToLowerInvariant(), uriInfo.Segments[i]);
         }
     }
     foreach (var qs in uriInfo.QueryString)
     {
         parameters.Add(qs.Key.ToLowerInvariant(), qs.Value);
     }
     return parameters;
 }
 protected override void Navigate(Route route, NavigationTarget target, string uri)
 {
     ContentFrame.Navigate(route.PageType, uri);
 }