예제 #1
0
 public static void TabIconClickedFunction(int index, object sender)
 {
     TabIconClicked?.Invoke(sender, new ElegentTabsEventArgs()
     {
         selectedIndex = index
     });
 }
        public static bool TabIconClickedFunction(int newIndex, int oldIndex, object sender)
        {
            var eventargs = new TabsEventArgs()
            {
                SelectedIndex = newIndex, LastSelectedIndex = oldIndex
            };

            TabIconClicked?.Invoke(sender, eventargs);
            TabClickedCommand?.Execute(eventargs);
            return(eventargs.Cancel);
        }