Пример #1
0
        public static void OnToolbarItemPropertyChanged(
            this AToolbar toolbar,
            PropertyChangedEventArgs e,
            IEnumerable <ToolbarItem> toolbarItems,
            Context context,
            Color?tintColor,
            PropertyChangedEventHandler toolbarItemChanged)
        {
            if (toolbarItems == null)
            {
                return;
            }

            if (e.IsOneOf(MenuItem.TextProperty, MenuItem.IconImageSourceProperty, MenuItem.IsEnabledProperty))
            {
                toolbar.UpdateMenuItems(toolbarItems, context, tintColor, toolbarItemChanged);
            }
        }