/// <summary>
        /// Returns the page instance mapped to the <paramref name="viewModel"/>.
        /// </summary>
        /// <returns>A <see cref="Page"/> instance.</returns>
        /// <param name="viewModel">The <see cref="BaseViewModel"/> instance to search for.</param>
        /// <param name="singleton"><c>true</c> if page instance to be returned should be treated as a singleton.</param>
        /// <typeparam name="T">The type of the view model to search for.</typeparam>
        public static T GetPage <T>(BaseViewModel viewModel, bool singleton = true) where T : Page
        {
            var page = GetPage(viewModel, singleton);

            return((T)page);
        }
 /// <summary>
 /// Returns the page instance mapped to the <paramref name="viewModel"/>.
 /// </summary>
 /// <returns>A <see cref="Page"/> instance.</returns>
 /// <param name="viewModel">The <see cref="BaseViewModel"/> instance to search for.</param>
 /// <param name="singleton"><c>true</c> if page instance to be returned should be treated as a singleton.</param>
 public static Page GetPage(BaseViewModel viewModel, bool singleton = true)
 {
     return(GetPage(viewModel.GetType(), singleton));
 }