private void AddNode(ObservableCollection <NavigationNode> nodes, string label, string fontIcon, string image, string pageName, bool isVisible = true, string title = null, string deepLinkUrl = null, bool isSelected = false) { if (nodes != null && isVisible) { var node = new ItemNavigationNode { Title = title, Label = label, FontIcon = fontIcon, Image = image, IsSelected = isSelected, IsVisible = isVisible, NavigationInfo = NavigationInfo.FromPage(pageName) }; if (!string.IsNullOrEmpty(deepLinkUrl)) { node.NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri(deepLinkUrl, UriKind.Absolute) }; } nodes.Add(node); } }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"Fixing", Label = "Home", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); var resourceLoader = new ResourceLoader(); Nodes.Add(new ItemNavigationNode { Title = @"随机", Label = "Home", FontIcon = "\ue10f", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "历史", FontIcon = "\ue1d3", NavigationInfo = NavigationInfo.FromPage("Section1ListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Html", FontIcon = "\ue185", NavigationInfo = NavigationInfo.FromPage("HtmlListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Collection", FontIcon = "\ue1d3", NavigationInfo = NavigationInfo.FromPage("CollectionListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Collection12", FontIcon = "\ue1d3", NavigationInfo = NavigationInfo.FromPage("Collection12ListPage") }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPanePrivacy"), FontIcon = "\ue1f7", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://appstudio.windows.com/home/appprivacyterms", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"Contoso Ltd", Label = "Home", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "About us", NavigationInfo = NavigationInfo.FromPage("AboutUsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Catalog", NavigationInfo = NavigationInfo.FromPage("CatalogListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Team", NavigationInfo = NavigationInfo.FromPage("TeamListPage") }); Nodes.Add(new ItemNavigationNode { Label = "News", NavigationInfo = NavigationInfo.FromPage("NewsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "About", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"Electrorithm", Label = "Home", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "Blog", NavigationInfo = NavigationInfo.FromPage("BlogListPage") }); Nodes.Add(new ItemNavigationNode { Label = "About", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); var resourceLoader = new ResourceLoader(); Nodes.Add(new ItemNavigationNode { Title = @"XenoForums App", Label = "Home", FontIcon = "\ue10f", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "Latest News", FontIcon = "\ue12a", NavigationInfo = NavigationInfo.FromPage("LatestNewsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Latest Posts", FontIcon = "\ue15f", NavigationInfo = NavigationInfo.FromPage("LatestPostsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Our YouTube", FontIcon = "\ue173", NavigationInfo = NavigationInfo.FromPage("OurYouTubeListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Our Staff Members", FontIcon = "\ue13d", NavigationInfo = NavigationInfo.FromPage("OurStaffMembersListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Server Status", FontIcon = "\ue102", NavigationInfo = NavigationInfo.FromPage("ServerStatusListPage") }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPaneAbout"), FontIcon = "\ue11b", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPanePrivacy"), FontIcon = "\ue1f7", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://appstudio.windows.com/home/appprivacyterms", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); var resourceLoader = new ResourceLoader(); Nodes.Add(new ItemNavigationNode { Title = @"Spotted", Label = "Home", FontIcon = "\ue10f", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "Home", FontIcon = "\ue185", NavigationInfo = NavigationInfo.FromPage("HomeListPage") }); Nodes.Add(new GroupNavigationNode { Label = "Regiões", Visibility = Visibility.Visible, FontIcon = "\ue10c", Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Generic Layout", FontIcon = "\ue1d3", NavigationInfo = NavigationInfo.FromPage("GenericLayoutListPage") }, new ItemNavigationNode { Label = "Photo Layout", FontIcon = "\ue1d3", NavigationInfo = NavigationInfo.FromPage("PhotoLayoutListPage") }, new ItemNavigationNode { Label = "Text Layout", FontIcon = "\ue12a", NavigationInfo = NavigationInfo.FromPage("TextLayoutListPage") }, } }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPaneAbout"), FontIcon = "\ue11b", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPanePrivacy"), FontIcon = "\ue1f7", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://appstudio.windows.com/home/appprivacyterms", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"VSauce Supreme", Label = "Home", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "VSauce", NavigationInfo = NavigationInfo.FromPage("VSauceListPage") }); Nodes.Add(new ItemNavigationNode { Label = "VSauce2", NavigationInfo = NavigationInfo.FromPage("VSauce2ListPage") }); Nodes.Add(new ItemNavigationNode { Label = "VSauce3", NavigationInfo = NavigationInfo.FromPage("VSauce3ListPage") }); Nodes.Add(new GroupNavigationNode { Label = "VSauce2 Playlists", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Mind Blow", NavigationInfo = NavigationInfo.FromPage("MindBlowListPage") }, new ItemNavigationNode { Label = "FAK", NavigationInfo = NavigationInfo.FromPage("FAKListPage") }, new ItemNavigationNode { Label = "54321", NavigationInfo = NavigationInfo.FromPage("Section1ListPage") }, new ItemNavigationNode { Label = "Weirdos of the Month", NavigationInfo = NavigationInfo.FromPage("WeirdosOfTheMonthListPage") }, } }); Nodes.Add(new ItemNavigationNode { Label = "WeSauce", NavigationInfo = NavigationInfo.FromPage("WeSauceListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Twitter", NavigationInfo = NavigationInfo.FromPage("TwitterListPage") }); Nodes.Add(new ItemNavigationNode { Label = "About", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); Nodes.Add(new ItemNavigationNode { Label = "Privacy terms", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://w8privacy.azurewebsites.net/privacy?dev=Lancelot%20Software&app=VSauce%20Supreme&mail=bGFuY2Vsb3RAb3V0bG9vay5jb20=&lng=En", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); var resourceLoader = new ResourceLoader(); Nodes.Add(new ItemNavigationNode { Title = @"Windows 10 News", Label = "Home", FontIcon = "\ue10f", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "What's going on", FontIcon = "\ue12a", NavigationInfo = NavigationInfo.FromPage("WhatsGoingOnListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Recent news", FontIcon = "\ue1d7", NavigationInfo = NavigationInfo.FromPage("RecentNewsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Apps", FontIcon = "\ue15a", NavigationInfo = NavigationInfo.FromPage("AppsListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Insider program", FontIcon = "\ue178", NavigationInfo = NavigationInfo.FromPage("InsiderProgramListPage") }); Nodes.Add(new ItemNavigationNode { Label = "What are people talking about", FontIcon = "\ue134", NavigationInfo = NavigationInfo.FromPage("WhatArePeopleTalkingAboutListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Do more", FontIcon = "\ue12d", NavigationInfo = NavigationInfo.FromPage("DoMoreListPage") }); Nodes.Add(new ItemNavigationNode { Label = resourceLoader.GetString("NavigationPanePrivacy"), FontIcon = "\ue1f7", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://appstudio.windows.com/home/appprivacyterms", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"Windows App Studio", Label = "Home", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "About", NavigationInfo = NavigationInfo.FromPage("AboutListPage") }); Nodes.Add(new GroupNavigationNode { Label = "Detail", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Generic Layout", NavigationInfo = NavigationInfo.FromPage("GenericLayoutListPage") }, new ItemNavigationNode { Label = "Photo Layout", NavigationInfo = NavigationInfo.FromPage("PhotoLayoutListPage") }, new ItemNavigationNode { Label = "Text Layout", NavigationInfo = NavigationInfo.FromPage("TextLayoutListPage") }, } }); Nodes.Add(new GroupNavigationNode { Label = "List Layouts", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "No Photo", NavigationInfo = NavigationInfo.FromPage("NoPhotoListPage") }, new ItemNavigationNode { Label = "Photo Left", NavigationInfo = NavigationInfo.FromPage("PhotoLeftListPage") }, new ItemNavigationNode { Label = "Photo Left Description", NavigationInfo = NavigationInfo.FromPage("PhotoLeftDescriptionListPage") }, new ItemNavigationNode { Label = "Big Pictures", NavigationInfo = NavigationInfo.FromPage("BigPicturesListPage") }, new ItemNavigationNode { Label = "Horizontal Cards", NavigationInfo = NavigationInfo.FromPage("HorizontalCardsListPage") }, new ItemNavigationNode { Label = "Vertical Cards", NavigationInfo = NavigationInfo.FromPage("VerticalCardsListPage") }, new ItemNavigationNode { Label = "Big Vertical Cards", NavigationInfo = NavigationInfo.FromPage("BigVerticalCardsListPage") }, new ItemNavigationNode { Label = "Photo", NavigationInfo = NavigationInfo.FromPage("PhotoListPage") }, new ItemNavigationNode { Label = "Big Photo", NavigationInfo = NavigationInfo.FromPage("BigPhotoListPage") }, new ItemNavigationNode { Label = "Photo Tile", NavigationInfo = NavigationInfo.FromPage("PhotoTileListPage") }, } }); Nodes.Add(new GroupNavigationNode { Label = "Datasources", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Html", NavigationInfo = NavigationInfo.FromPage("HtmlListPage") }, new ItemNavigationNode { Label = "RSS", NavigationInfo = NavigationInfo.FromPage("RSSListPage") }, new ItemNavigationNode { Label = "Flickr", NavigationInfo = NavigationInfo.FromPage("FlickrListPage") }, new ItemNavigationNode { Label = "Bing", NavigationInfo = NavigationInfo.FromPage("BingListPage") }, new ItemNavigationNode { Label = "Collection", NavigationInfo = NavigationInfo.FromPage("CollectionListPage") }, new ItemNavigationNode { Label = "TouchDevelop", NavigationInfo = NavigationInfo.FromPage("TouchDevelopListPage") }, } }); Nodes.Add(new GroupNavigationNode { Label = "Actions", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Http", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://www.microsoft.com") } }, new ItemNavigationNode { Label = "Https", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("https://login.microsoftonline.com") } }, new ItemNavigationNode { Label = "FTP", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("ftp://ftp.microsoft.com") } }, new ItemNavigationNode { Label = "Email", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("mailto:[email protected]") } }, new ItemNavigationNode { Label = "Phone", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("tel:123-456-7890") } }, new ItemNavigationNode { Label = "Here Maps - Address", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("bingmaps:?collection=16070+N.E.+36th+Way%2C+Redmond%2C+Wa&lvl=18") } }, new ItemNavigationNode { Label = "Here Maps - Directions", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("bingmaps:?rtp=~adr.16070 N.E. 36th Way, Redmond, Wa") } }, new ItemNavigationNode { Label = "Custom - Zune", NavigationInfo = new NavigationInfo { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("zune:search?keyword=rss&contenttype=app") } }, } }); Nodes.Add(new ItemNavigationNode { Label = "About", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); Nodes.Add(new ItemNavigationNode { Label = "Privacy terms", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://appstudio.windows.com/home/appprivacyterms", UriKind.Absolute) } }); }
public void LoadNavigation() { Nodes = new ObservableCollection <NavigationNode>(); Nodes.Add(new ItemNavigationNode { Title = @"DJNano Show", Label = "Home", FontIcon = "\ue10f", IsSelected = true, NavigationInfo = NavigationInfo.FromPage("HomePage") }); Nodes.Add(new ItemNavigationNode { Label = "Tours", FontIcon = "\ue709", NavigationInfo = NavigationInfo.FromPage("ToursListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Videos", FontIcon = "\ue102", NavigationInfo = NavigationInfo.FromPage("VideosListPage") }); Nodes.Add(new GroupNavigationNode { Label = "Social", FontIcon = "\ue10c", Visibility = Visibility.Visible, Nodes = new ObservableCollection <NavigationNode>() { new ItemNavigationNode { Label = "Instagram", Image = "/Assets/DataImages/InstagramIcon.png", NavigationInfo = NavigationInfo.FromPage("InstagramListPage") }, new ItemNavigationNode { Label = "YouTube", Image = "/Assets/DataImages/YouTubeIcon.png", NavigationInfo = NavigationInfo.FromPage("YouTubeListPage") }, new ItemNavigationNode { Label = "Facebook", Image = "/Assets/DataImages/FacebookIcon.png", NavigationInfo = NavigationInfo.FromPage("FacebookListPage") }, new ItemNavigationNode { Label = "Twitter", Image = "/Assets/DataImages/TwitterIcon.png", NavigationInfo = NavigationInfo.FromPage("TwitterListPage") }, } }); Nodes.Add(new ItemNavigationNode { Label = "Discography", FontIcon = "\ue958", NavigationInfo = NavigationInfo.FromPage("DiscographyListPage") }); Nodes.Add(new ItemNavigationNode { Label = "Biography", FontIcon = "\ue181", NavigationInfo = NavigationInfo.FromPage("BiographyListPage") }); Nodes.Add(new ItemNavigationNode { Label = "About", FontIcon = "\ue11b", NavigationInfo = NavigationInfo.FromPage("AboutPage") }); Nodes.Add(new ItemNavigationNode { Label = "Privacy terms", FontIcon = "\ue1F6", NavigationInfo = new NavigationInfo() { NavigationType = NavigationType.DeepLink, TargetUri = new Uri("http://1drv.ms/1llJOkM", UriKind.Absolute) } }); }