private void ListBox_CollectionChanged()
        {
            var listBox = AssociatedObject;

            if (AreAllFilesSelected.GetValueOrDefault())
            {
                listBox?.SelectAll();
            }
        }
        private void ListBox_CollectionChanged()
        {
            var listBox = AssociatedObject;

            if (!AreAllFilesSelected.GetValueOrDefault())
            {
                return;
            }

            _performanceTracer?.Start("ListBox.SelectAll", DispatcherPriority.Input);

            listBox?.SelectAll();
        }