Example #1
0
        /// <summary>
        /// Navigate to another page.
        /// </summary>
        /// <param name="name">Name of the Page</param>
        /// <returns>if it was successful</returns>
        public bool NavigateTo(string name)
        {
            var spage = pages.Where(o => o.Name == name).First();

            if (spage != null)
            {
                SelectedIndex = pages.IndexOf(spage);
                return(true);
            }
            return(false);
        }