Пример #1
0
 public double HighestPriorityInOverflowItems()
 {
     if (OverflowItems.Count() > 0)
     {
         return(OverflowItems.Max(item => item.Priority));
     }
     else
     {
         return(-1);
     }
 }
Пример #2
0
        protected override Task OnParametersSetAsync()
        {
            _currentData = new CommandBarData()
            {
                PrimaryItems         = new List <ICommandBarItem>(Items != null ? Items : new List <ICommandBarItem>()),
                OverflowItems        = new List <ICommandBarItem>(OverflowItems != null ? OverflowItems : new List <ICommandBarItem>()),
                FarItems             = new List <ICommandBarItem>(FarItems != null ? FarItems : new List <ICommandBarItem>()),
                MinimumOverflowItems = OverflowItems != null?OverflowItems.Count() : 0,
                                           CacheKey = ""
            };

            return(base.OnParametersSetAsync());
        }