public ShellViewModel() { Navigation = new AppNavigation(); Navigation.LoadNavigation(); if (Window.Current.Bounds.Width < 800) { this.SplitViewDisplayMode = SplitViewDisplayMode.Overlay; } else { this.SplitViewDisplayMode = SplitViewDisplayMode.CompactOverlay; } Window.Current.SizeChanged += ((args, e) => { WindowSizeChanged(e.Size.Width); }); NavigationService.NavigatedToPage += NavigationService_NavigatedToPage; FullScreenService.FullScreenModeChanged += FullScreenModeChanged; SystemNavigationManager.GetForCurrentView().BackRequested += ((sender, e) => { if (NavigationService.CanGoBack()) { FullScreenService.ExitFullScreenMode(); e.Handled = true; NavigationService.GoBack(); } }); }
public Task NavigateToAsync(Page page) { return(AppNavigation.PushAsync(page)); }
/// <summary> /// Initializes a new instance of the <see cref="App"/> class. /// </summary> public App() { this.InitializeComponent(); AppNavigation.ShowStartUp(); }
public override bool OpenUrl(UIApplication application, NSUrl url, string sourceApplication, NSObject annotation) { Logger.Log("AppDelegate.OpenUrl: {0}", url); var isFb = ApplicationDelegate.SharedInstance.OpenUrl(application, url, sourceApplication, annotation); if (isFb) { return(true); } if ((url == null) || (url.PathComponents == null) || (url.PathComponents.Length < 2)) { return(false); } switch (url.Host.ToLower()) { case "internal": if ((url.PathComponents.Length >= 3) && (url.PathComponents[1] == "rest")) { RestService.Instance.SetDomainPrefixAndAppToken(url.PathComponents[2].Trim('/'), (url.PathComponents.Length == 4) ? url.PathComponents[3].Trim('/') : string.Empty); } else { return(false); } break; case "content": if ((url.PathComponents.Length >= 4) && (url.PathComponents[2] == "link")) { AppNavigation.FireAppNavigate(new AppNavigationArgs() { Page = Model.CloudItem.Content, ProviderID = url.PathComponents[1], Token = url.PathComponents[3] }); } else { return(false); } break; case "recording": AppNavigation.FireAppNavigate(new AppNavigationArgs() { Page = Model.CloudItem.Library, ItemID = url.PathComponents[1] }); break; case "message": AppNavigation.FireAppNavigate(new AppNavigationArgs() { Page = Model.CloudItem.Notifications, ItemID = url.PathComponents[1] }); break; case "queue": AppNavigation.FireAppNavigate(new AppNavigationArgs() { Page = Model.CloudItem.Queue, ItemID = url.PathComponents[1] }); break; } return(true); }
public CustomNavigation(INavigation anAppNavigation) { _appNavigation = anAppNavigation as AppNavigation; }
private void InitializeNavigationItems() { NavigationItems.Add(AppNavigation.NodeFromAction( "Home", "Home", (ni) => NavigationService.NavigateToRoot(), AppNavigation.IconFromSymbol(Symbol.Home))); NavigationItems.Add(AppNavigation.NodeFromAction( "59be312e-3799-4285-9a7a-77b26f5d301a", "Greetings traveler", AppNavigation.ActionFromPage("GreetingsTravelerListPage"), AppNavigation.IconFromGlyph("\ue113"))); NavigationItems.Add(AppNavigation.NodeFromAction( "1467f99d-1413-4a85-bf0e-b396445d4bc9", "Card Game Project ", AppNavigation.ActionFromPage("CardGameProjectListPage"), AppNavigation.IconFromGlyph("\ue12a"))); var menuSocialMediaItems = new List <NavigationItem>(); menuSocialMediaItems.Add(AppNavigation.NodeFromAction( "0fd96c25-68a5-4b4d-8517-4d9958c2f6f0", "Facebook", AppNavigation.ActionFromPage("FacebookListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/facebook-256-1.png")) })); menuSocialMediaItems.Add(AppNavigation.NodeFromAction( "0fd96c25-68a5-4b4d-8517-4d9958c2f6f0", "Interesting Videos", AppNavigation.ActionFromPage("InterestingVideosListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/logo-2.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "0fd96c25-68a5-4b4d-8517-4d9958c2f6f0", "Social Media", menuSocialMediaItems, null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/Social-Media-Icons.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "f51fc4f7-b7b7-4deb-9bde-f61cb2bdbc21", "Places to learn programming ", AppNavigation.ActionFromPage("PlacesToLearnProgrammingListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/bookshelf32x32.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "f5a7b304-0cfb-400b-a988-1917f5096c41", "Learning ", AppNavigation.ActionFromPage("LearningListPage"), AppNavigation.IconFromGlyph("\ue1d3"))); NavigationItems.Add(NavigationItem.Separator); NavigationItems.Add(AppNavigation.NodeFromControl( "About", "NavigationPaneAbout".StringResource(), new AboutPage(), AppNavigation.IconFromImage(new Uri("ms-appx:///Assets/about.png")))); }
public JsonResult SaveFunctionNode(string functionNodeStr, string appCode) { return(ExecuteFunctionRun(() => { ActionResult result = new ActionResult(); FunctionViewModel model = JsonConvert.DeserializeObject <FunctionViewModel>(functionNodeStr); string FunctionID = model.ObjectID; string ParentCode = model.ParentCode; string FunctionCode = model.Code; string Name = model.DisplayName; string Description = model.Description; int SortKey = model.SortKey; bool OpenNewWindow = model.OpenNewWindow; string IconUrl = model.IconUrl; string IconCss = model.IconCss; int IconType = model.IconType; string Url = model.Url; //TopAppCode全局Url参数,必须要有,且值为所在一级目录的编码 //此处要做参数是否存在,以及参数的正确性 if (!string.IsNullOrEmpty(Url)) { if (Url.IndexOf("({") > 0) { if (Url.IndexOf("TopAppCode:") > 0) { //正确性 string[] urlArry = Url.Split(new string[] { "TopAppCode:" }, StringSplitOptions.RemoveEmptyEntries); if (urlArry.Length > 2) { //参数重复 result.Message = "FunctionNode.ParemRepeat"; result.Success = false; return Json(result, JsonRequestBehavior.AllowGet); } if (urlArry[1].IndexOf(',') == -1) { Url = urlArry[0] + "TopAppCode:" + "\"" + model.TopAppCode + "\"})"; } else { string[] rightArry = urlArry[1].Split(','); Url = urlArry[0] + "TopAppCode:\"" + model.TopAppCode + "\"," + rightArry[1]; if (rightArry.Length > 2) { for (int i = 2; i < rightArry.Count(); i++) { Url = Url + "," + rightArry[i]; } } } } else { string[] urlArry = Url.Split(new string[] { "({" }, StringSplitOptions.RemoveEmptyEntries); Url = urlArry[0] + "({TopAppCode:\"" + model.TopAppCode + "\"," + urlArry[1]; } } else if (Url.ToLower().IndexOf("http://") == -1) { //存在性 Url += "({TopAppCode:\"" + model.TopAppCode + "\"})"; } } if (string.IsNullOrEmpty(FunctionCode)) { result.Message = "FunctionNode.CodeNeed"; result.Success = false; return Json(result, JsonRequestBehavior.AllowGet); } FunctionNode F = null; if (!string.IsNullOrEmpty(FunctionID)) { F = this.Engine.FunctionAclManager.GetFunctionNode(FunctionID); } else { F = new FunctionNode() { ParentCode = ParentCode, Code = FunctionCode }; } if (F == null) { result.Message = "msgGlobalString.NullObjectException"; result.Success = false; return Json(result, JsonRequestBehavior.AllowGet); } F.OpenNewWindow = OpenNewWindow; F.DisplayName = Name; F.Description = Description; F.SortKey = SortKey; F.IconUrl = IconUrl; F.Url = Url; F.NodeType = FunctionNodeType.Function; F.IconCss = IconCss; F.IconType = (Acl.IconType)IconType; long isSuccess = ErrorCode.SUCCESS; if (string.IsNullOrEmpty(FunctionID)) { isSuccess = this.Engine.FunctionAclManager.AddFunctionNode(F); } else { isSuccess = this.Engine.FunctionAclManager.UpdateFunctionNode(F); } if (isSuccess == ErrorCode.SUCCESS) { AppNavigation app = this.Engine.AppNavigationManager.GetApp(appCode); if (app != null) { this.Engine.AppNavigationManager.UpdateApp(app); } result.Success = true; result.Extend = F.ObjectID; return Json(result, JsonRequestBehavior.AllowGet); } else { if (isSuccess == ErrorCode.CodeIsExists) { result.Success = false; result.Message = "msgGlobalString.CodeDuplicate"; return Json(result, JsonRequestBehavior.AllowGet); } else { result.Success = false; result.Message = "msgGlobalString.CodeDuplicate"; return Json(result, JsonRequestBehavior.AllowGet); } } })); }
public JsonResult ImportApp(string appImportSettingsStr) { return(ExecuteFunctionRun(() => { AppImportSettingsViewModel model = JsonConvert.DeserializeObject <AppImportSettingsViewModel>(appImportSettingsStr); ActionResult result = new ActionResult(); string xmlStr = Session[model.FileName] == null ? "" : Session[model.FileName].ToString(); List <FunctionNode> oldFunctionList = null; if (!ReadXmlFile(xmlStr, out oldFunctionList)) { result.Success = false; } if (!Validate(model, oldFunctionList, out result)) { return Json(result, JsonRequestBehavior.AllowGet); } try { AppNavigation oldApp = this.Engine.AppNavigationManager.GetApp(app.AppCode); if (oldApp == null) { app.ObjectID = Guid.NewGuid().ToString(); app.Serialized = false; this.Engine.AppNavigationManager.AddApp(app); } else { if (model.IsCover) { app.ObjectID = oldApp.ObjectID; this.Engine.AppNavigationManager.UpdateApp(app); } } //先删除菜单 FunctionNode[] oldNodes = this.Engine.FunctionAclManager.GetFunctionNodesByParentCode(app.AppCode); if (oldNodes != null) { foreach (FunctionNode oldNode in oldNodes) { this.Engine.FunctionAclManager.RemoveFunctionNodeByCode(oldNode.Code, true); } } //添加菜单 foreach (FunctionNode node in oldFunctionList) { this.Engine.FunctionAclManager.AddFunctionNode(node); } //从缓存中移除文件内容 Session.Remove(model.FileName); result.Success = true; } catch (Exception ex) { result.Success = false; result.Message = "Apps.ImportFail"; result.Extend = ex.Message; } return Json(result, JsonRequestBehavior.AllowGet); })); }
public JsonResult SaveApps(AppsViewModel model) { return(ExecuteFunctionRun(() => { ActionResult result = new ActionResult(); AppNavigation App = null; if (!string.IsNullOrEmpty(model.ObjectID)) { App = this.Engine.AppNavigationManager.GetApp(model.AppCode); } else { if (!this.AppsAuthorized) { result.Success = false; result.Message = "Apps.NotAuthorized"; } else if (this.Engine.AppNavigationManager.GetApp(model.AppCode) != null || this.Engine.FunctionAclManager.GetFunctionNodeByCode(model.AppCode) != null) { result.Success = false; result.Message = "Apps.CodeExists"; } else { result.Success = true; } if (result.Success) { App = new AppNavigation(); } } if (App != null) { App.AppCode = model.AppCode; App.DisplayName = model.DisplayName; App.WeChatID = model.WeChatID; App.IconUrl = model.Image; App.Description = model.Description; App.SortKey = model.SortKey; //App.Url = txtUrl.Text; App.VisibleOnPortal = model.VisibleOnPortal ? OThinker.Data.BoolMatchValue.True : OThinker.Data.BoolMatchValue.False; App.DockOnHomePage = model.DockOnHomePage ? OThinker.Data.BoolMatchValue.True : OThinker.Data.BoolMatchValue.False; App.VisibleOnMobile = model.VisibleOnMobile ? OThinker.Data.BoolMatchValue.True : OThinker.Data.BoolMatchValue.False; if (string.IsNullOrEmpty(model.ObjectID)) { result.Success = this.Engine.AppNavigationManager.AddApp(App); App = this.Engine.AppNavigationManager.GetApp(model.AppCode); } else { result.Success = this.Engine.AppNavigationManager.UpdateApp(App); } FunctionNode AppsNode = this.Engine.FunctionAclManager.GetFunctionNodeByCode(FunctionNode.Category_Apps_Code); if (AppsNode != null) { result.Extend = new { AppCode = App.AppCode, ParentId = AppsNode.ObjectID } } ; else { result.Extend = new { AppCode = App.AppCode } }; } return Json(result, JsonRequestBehavior.AllowGet); })); }
private void InitializeNavigationItems() { NavigationItems.Add(AppNavigation.NodeFromAction( "Home", "Home", (ni) => NavigationService.NavigateToRoot(), AppNavigation.IconFromSymbol(Symbol.Home))); var menuMySLOItems = new List <NavigationItem>(); menuMySLOItems.Add(AppNavigation.NodeFromAction( "a5340184-ea6e-4264-a23f-e38f7a3ae912", "MySLO Лента", AppNavigation.ActionFromPage("MySLO1ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/myslo_32-1.png")) })); menuMySLOItems.Add(AppNavigation.NodeFromAction( "a5340184-ea6e-4264-a23f-e38f7a3ae912", "MySLO Блоги", AppNavigation.ActionFromPage("MySLO2ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/myslo_32-3.png")) })); menuMySLOItems.Add(AppNavigation.NodeFromAction( "a5340184-ea6e-4264-a23f-e38f7a3ae912", "MySLO Город", AppNavigation.ActionFromPage("MySLO3ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/myslo_32-2.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "a5340184-ea6e-4264-a23f-e38f7a3ae912", "MySLO", menuMySLOItems, AppNavigation.IconFromGlyph("\ue10c"))); NavigationItems.Add(AppNavigation.NodeFromAction( "1c18af74-0545-4e83-ac04-9ab121ef7993", "Правительство ТО", AppNavigation.ActionFromPage("Section1ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/ПравительствоТО-32.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "b088b34f-0d4e-470e-91b2-70c4292e07af", "Тульские Новости", AppNavigation.ActionFromPage("Section2ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/tulanews_50.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "89841871-8085-4b86-af40-169b0ac768f1", "Молодой Коммунар", AppNavigation.ActionFromPage("Section3ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/mk_50.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "16f5894f-30f2-49ad-85e4-6e6d7f2c4898", "Россия 1", AppNavigation.ActionFromPage("Section4ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/россия1_32.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "ebad5931-1832-4308-bfe2-e069f97dbfa5", "Центр 71", AppNavigation.ActionFromPage("Section5ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/центр71_32-3.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "1a748fc4-95dd-4ebb-8c8f-377e05b8b92d", "Следственный Комитет", AppNavigation.ActionFromPage("Section6ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/sled_com_32.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "d9cd81b6-ae15-44f8-8d32-5d7594a5a01b", "ТелеТула", AppNavigation.ActionFromPage("Section7ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/teletula_50-2.png")) })); NavigationItems.Add(AppNavigation.NodeFromAction( "36ce0555-3281-4038-9541-974782d43adf", "Первый Тульский", AppNavigation.ActionFromPage("Section8ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/первый_тульский_32.png")) })); NavigationItems.Add(NavigationItem.Separator); NavigationItems.Add(AppNavigation.NodeFromControl( "About", "NavigationPaneAbout".StringResource(), new AboutPage(), AppNavigation.IconFromImage(new Uri("ms-appx:///Assets/about.png")))); }
private void InitializeNavigationItems() { NavigationItems.Add(AppNavigation.NodeFromAction( "Home", "Home", (ni) => NavigationService.NavigateToRoot(), AppNavigation.IconFromSymbol(Symbol.Home))); var menuActions1Items = new List <NavigationItem>(); menuActions1Items.Add(AppNavigation.NodeFromAction( "4c48d6af-5ce4-4569-aaf8-ccc19496d806", "fournitures", AppNavigation.ActionFromPage("FournituresListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/LOGOMARRODIN.png")) })); menuActions1Items.Add(AppNavigation.NodeFromAction( "4c48d6af-5ce4-4569-aaf8-ccc19496d806", "UTILES", AppNavigation.ActionFromPage("UTILESListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/useful-1.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "4c48d6af-5ce4-4569-aaf8-ccc19496d806", "actions", menuActions1Items, AppNavigation.IconFromGlyph("\ue10c"))); NavigationItems.Add(AppNavigation.NodeFromAction( "a4ca0885-7702-465f-8cee-3c26abd86d5f", "recherche Bing intégré", AppNavigation.ActionFromPage("RechercheBingIntegreListPage"), AppNavigation.IconFromGlyph("\ue155"))); var menuSOCIALItems = new List <NavigationItem>(); menuSOCIALItems.Add(AppNavigation.NodeFromAction( "1df2b84d-d429-48c5-a103-ac7dd3bed0e4", "Flickr", AppNavigation.ActionFromPage("FlickrListPage"), AppNavigation.IconFromGlyph("\ue114"))); menuSOCIALItems.Add(AppNavigation.NodeFromAction( "1df2b84d-d429-48c5-a103-ac7dd3bed0e4", "YouTube", AppNavigation.ActionFromPage("YouTubeListPage"), AppNavigation.IconFromGlyph("\ue173"))); menuSOCIALItems.Add(AppNavigation.NodeFromAction( "1df2b84d-d429-48c5-a103-ac7dd3bed0e4", "Twitter", AppNavigation.ActionFromPage("TwitterListPage"), AppNavigation.IconFromGlyph("\ue134"))); NavigationItems.Add(AppNavigation.NodeFromSubitems( "1df2b84d-d429-48c5-a103-ac7dd3bed0e4", "SOCIAL", menuSOCIALItems, AppNavigation.IconFromGlyph("\ue10c"))); var menuLyceeItems = new List <NavigationItem>(); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Présentation générale", AppNavigation.ActionFromPage("PresentationGeneraleListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/prsetation.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "conseil de lecture", AppNavigation.ActionFromPage("ConseilDeLectureListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/livtreee.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "CDI", AppNavigation.ActionFromPage("CDIListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/CDI.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Allemand", AppNavigation.ActionFromPage("AllemandListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/CDI-4.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Anglais et section européenne", AppNavigation.ActionFromPage("AnglaisEtSectionEuropeenneListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/angletrere-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Italien", AppNavigation.ActionFromPage("ItalienListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/italien.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Section européenne espagnol", AppNavigation.ActionFromPage("SectionEuropeenneEspagnolListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/espgn-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Arts plastiques", AppNavigation.ActionFromPage("ArtsPlastiquesListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/artpls-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Cinéma-audiovisuel", AppNavigation.ActionFromPage("CinemaAudiovisuelListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/auuddc-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Théâtre", AppNavigation.ActionFromPage("TheatreListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/theattre.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Histoire des arts", AppNavigation.ActionFromPage("HistoireDesArtsListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/hodza-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Langues et cultures ", AppNavigation.ActionFromPage("LanguesEtCulturesListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/lannsguescultures-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Littérature et société", AppNavigation.ActionFromPage("LitteratureEtSocieteListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/litesoc-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "SVT", AppNavigation.ActionFromPage("SVTListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/svtlogo-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "SES", AppNavigation.ActionFromPage("SESListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/sesss.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "Sciences physiques", AppNavigation.ActionFromPage("SciencesPhysiquesListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/sciences_physiques.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "TERMINALE S NUMERIQUE", AppNavigation.ActionFromPage("TERMINALESNUMERIQUEListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/termsnumeric-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "TEMINALE ES MATHS", AppNavigation.ActionFromPage("TEMINALEESMATHSListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/termesmaths-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "TERMINALE S MATHS", AppNavigation.ActionFromPage("TERMINALESMATHSListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/terms-1.png")) })); menuLyceeItems.Add(AppNavigation.NodeFromAction( "b475fae9-de27-4242-8db7-4388fef4ca64", "EPS", AppNavigation.ActionFromPage("EPSListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/sport.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "b475fae9-de27-4242-8db7-4388fef4ca64", "Lycée", menuLyceeItems, AppNavigation.IconFromGlyph("\ue10c"))); var menuCOLLEGEItems = new List <NavigationItem>(); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "CONSEIL DE LECTURE", AppNavigation.ActionFromPage("CONSEILDELECTURE1ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/livre-1.png")) })); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "Section européenne Espagnol", AppNavigation.ActionFromPage("SectionEuropeenneEspagnol1ListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/espgn-3.png")) })); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "6EME ANGLAIS ALLEMAND", AppNavigation.ActionFromPage("EMEANGLAISALLEMANDListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/anglienne-3.png")) })); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "6EME ANGLAS ITALIEN", AppNavigation.ActionFromPage("EMEANGLASITALIENListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/anglienne-1.png")) })); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "CLASSES HORAIRES AMENAGES", AppNavigation.ActionFromPage("CLASSESHORAIRESAMENAGESListPage"), AppNavigation.IconFromGlyph("\ue121"))); menuCOLLEGEItems.Add(AppNavigation.NodeFromAction( "a1723904-e302-4bda-8535-5044a9ceff43", "ENSA", AppNavigation.ActionFromPage("ENSAListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/ensa-1.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "a1723904-e302-4bda-8535-5044a9ceff43", "COLLEGE", menuCOLLEGEItems, AppNavigation.IconFromGlyph("\ue10c"))); var menuCLASSESPREPASItems = new List <NavigationItem>(); menuCLASSESPREPASItems.Add(AppNavigation.NodeFromAction( "454d981e-ffa9-4c88-ae1c-03f1b6ef8063", "CANDIDATURE PROCEDURE", AppNavigation.ActionFromPage("CANDIDATUREPROCEDUREListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/addm.png")) })); menuCLASSESPREPASItems.Add(AppNavigation.NodeFromAction( "454d981e-ffa9-4c88-ae1c-03f1b6ef8063", "INSCRIPTION EN CPGE", AppNavigation.ActionFromPage("INSCRIPTIONENCPGEListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/cpgee-3.png")) })); menuCLASSESPREPASItems.Add(AppNavigation.NodeFromAction( "454d981e-ffa9-4c88-ae1c-03f1b6ef8063", "bibliographies", AppNavigation.ActionFromPage("BibliographiesListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/bigra.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "454d981e-ffa9-4c88-ae1c-03f1b6ef8063", "CLASSES PREPAS", menuCLASSESPREPASItems, AppNavigation.IconFromGlyph("\ue10c"))); var menuCITESCOLAIREItems = new List <NavigationItem>(); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "PRESENTATION", AppNavigation.ActionFromPage("PRESENTATIONListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/prsetation-2.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "VUE DE LA CITE SCOLAIRE", AppNavigation.ActionFromPage("VUEDELACITESCOLAIREListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/lycee_rodin_rue_corv.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "HISTOIRE DE RODIN", AppNavigation.ActionFromPage("HISTOIREDERODINListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/603px-auguste_rodin_1893_nadar.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "ORGANIGRAMME", AppNavigation.ActionFromPage("ORGANIGRAMMEListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/organigramme.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "INJS", AppNavigation.ActionFromPage("INJSListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/injs-1.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "LES REPAS", AppNavigation.ActionFromPage("LESREPASListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/iammisc_dinner_plate.png")) })); menuCITESCOLAIREItems.Add(AppNavigation.NodeFromAction( "57287760-1297-43b6-955b-65f8b9caac54", "ASSOCIATION SPORTIVE", AppNavigation.ActionFromPage("ASSOCIATIONSPORTIVEListPage"), null, new Image() { Source = new BitmapImage(new Uri("ms-appx:///Assets/DataImages/unsss.png")) })); NavigationItems.Add(AppNavigation.NodeFromSubitems( "57287760-1297-43b6-955b-65f8b9caac54", "CITE SCOLAIRE", menuCITESCOLAIREItems, AppNavigation.IconFromGlyph("\ue10c"))); NavigationItems.Add(AppNavigation.NodeFromAction( "18544529-e758-4567-8444-e74b2eb11d28", "actu", AppNavigation.ActionFromPage("ActuListPage"), AppNavigation.IconFromGlyph("\ue1d7"))); NavigationItems.Add(NavigationItem.Separator); NavigationItems.Add(AppNavigation.NodeFromControl( "About", "NavigationPaneAbout".StringResource(), new AboutPage(), AppNavigation.IconFromImage(new Uri("ms-appx:///Assets/about.png")))); }