Exemplo n.º 1
0
        public static UniconNavigationParameters FromNavigationParameters(NavigationParameters navigationParameters)
        {
            UniconNavigationParameters uniconNavigationParameters = new UniconNavigationParameters();

            foreach (KeyValuePair <string, object> keyValuePair in navigationParameters)
            {
                uniconNavigationParameters.Add(new UniconNavigationParameter(keyValuePair.Key, keyValuePair.Value));
            }

            return(uniconNavigationParameters);
        }
Exemplo n.º 2
0
        public static UniconNavigationContext FromNavigationContext(NavigationContext navigationContext)
        {
            UniconNavigationContext uniconNavigationContext = new UniconNavigationContext();

            if (navigationContext == null)
            {
                return(null);
            }
            uniconNavigationContext.NavigationParameters = UniconNavigationParameters.FromNavigationParameters(navigationContext.Parameters);
            uniconNavigationContext.Uri = navigationContext.Uri;
            return(uniconNavigationContext);
        }