상속: NavigationNode, INavigable
예제 #1
0
		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);
            }            
        }
예제 #2
0
 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);
     }
 }