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); } }
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); } }