示例#1
0
        internal static void PrepareContainerForItemOverrideEx(this ListBox lb, DependencyObject element, ref bool isFirstItemContainerLoaded)
        {
            // Don't animate using this override if "on loaded" animations is false
            if (!Animations.GetAnimateOnLoad(lb))
            {
                return;
            }

            // Exit the element is not a ListBoxItem or if no animations are specified
            if (!(element is ListBoxItem lbi) || Animations.GetItems(lb) == null)
            {
                return;
            }

            lb.AnimateItems(lbi, ref isFirstItemContainerLoaded);
        }