コード例 #1
0
 /// <summary>
 /// Informs the UI to show the master page in terms of the passed group
 /// </summary>
 /// <param name="group">Group</param>
 private void GoToMasterPage(VisualGenericGroup group)
 {
     Messenger.Default.Send(group);
 }
コード例 #2
0
 /// <summary>
 /// Raised when the user change the default displayed panorama item
 /// </summary>
 /// <param name="sender">Panorama</param>
 /// <param name="e">Event args which contains the new and the old selected item</param>
 private void LlsMenu_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (Panorama.SelectedItem is PanoramaItem)
     {
         _selectedPanoramaGroup = (VisualGenericGroup)(Panorama.SelectedItem as PanoramaItem).Content;
     }
 }
コード例 #3
0
        /// <summary>
        /// Open the selected item in the related master page
        /// </summary>
        /// <param name="group">Group and group items to display</param>
        private void GoToMasterPage(VisualGenericGroup group)
        {
            IDictionary<string, Func<Type>> pages = new Dictionary<string, Func<Type>>
                {
                    { AppResourcesHelper.GetString("LBL_NEWS"), () => typeof(NewsPage) },
                    { AppResourcesHelper.GetString("LBL_BUREAU"), () => typeof(MembersPage) },
                    { AppResourcesHelper.GetString("LBL_PROJECTS"), () => typeof(ProjectsPage) },
                    { AppResourcesHelper.GetString("LBL_CONFERENCES"), () => typeof(ConferencesPage) },
                    { AppResourcesHelper.GetString("LBL_SALONS"), () => typeof(ShowsPage) }
                };

            Type type = pages[group.Title]();
            Frame.Navigate(type);
        }