Esempio n. 1
0
 /// <summary>
 /// This method allows an IRegionManager to locate a specified region and navigate in it to the specified target string, passing an instance of NavigationParameters, which holds a collection of object parameters.
 /// </summary>
 /// <param name="regionName">The name of the region where the navigation will occur.</param>
 /// <param name="target">A string that represents the target where the region will navigate.</param>
 /// <param name="navigationParameters">An instance of NavigationParameters, which holds a collection of object parameters.</param>
 public void RequestNavigate(string regionName, string target, NavigationParameters navigationParameters)
 {
     RequestNavigate(regionName, new Uri(target, UriKind.RelativeOrAbsolute), nr => { }, navigationParameters);
 }
Esempio n. 2
0
 /// <summary>
 /// This method allows an IRegionManager to locate a specified region and navigate in it to the specified target string, passing a navigation callback and an instance of NavigationParameters, which holds a collection of object parameters.
 /// </summary>
 /// <param name="regionName">The name of the region where the navigation will occur.</param>
 /// <param name="target">A string that represents the target where the region will navigate.</param>
 /// <param name="navigationCallback">The navigation callback that will be executed after the navigation is completed.</param>
 /// <param name="navigationParameters">An instance of NavigationParameters, which holds a collection of object parameters.</param>
 public void RequestNavigate(string regionName, string target, Action <NavigationResult> navigationCallback, NavigationParameters navigationParameters)
 {
     RequestNavigate(regionName, new Uri(target, UriKind.RelativeOrAbsolute), navigationCallback, navigationParameters);
 }
Esempio n. 3
0
 /// <summary>
 /// This method allows an IRegionManager to locate a specified region and navigate in it to the specified target Uri, passing an instance of NavigationParameters, which holds a collection of object parameters.
 /// </summary>
 /// <param name="regionName">The name of the region where the navigation will occur.</param>
 /// <param name="target">A Uri that represents the target where the region will navigate.</param>
 /// <param name="navigationParameters">An instance of NavigationParameters, which holds a collection of object parameters.</param>
 public void RequestNavigate(string regionName, Uri target, NavigationParameters navigationParameters)
 {
     RequestNavigate(regionName, target, nr => { }, navigationParameters);
 }
Esempio n. 4
0
        /// <summary>
        /// This method allows an IRegionManager to locate a specified region and navigate in it to the specified target Uri, passing a navigation callback and an instance of NavigationParameters, which holds a collection of object parameters.
        /// </summary>
        /// <param name="regionName">The name of the region where the navigation will occur.</param>
        /// <param name="target">A Uri that represents the target where the region will navigate.</param>
        /// <param name="navigationCallback">The navigation callback that will be executed after the navigation is completed.</param>
        /// <param name="navigationParameters">An instance of NavigationParameters, which holds a collection of object parameters.</param>
        public void RequestNavigate(string regionName, Uri target, Action <NavigationResult> navigationCallback, NavigationParameters navigationParameters)
        {
            if (navigationCallback == null)
            {
                throw new ArgumentNullException(nameof(navigationCallback));
            }

            if (Regions.ContainsRegionWithName(regionName))
            {
                Regions[regionName].RequestNavigate(target, navigationCallback, navigationParameters);
            }
            else
            {
                navigationCallback(new NavigationResult(new NavigationContext(null, target, navigationParameters), false));
            }
        }