none
Wpf collectionView Filter Cleanup Required?

    Question

  • I was curiouse if filtering registers a strong reference or not

    in my view model I get a collection view from one of my observable collections and register a filter

    is their anything I need to do manual [i.e. unregistering ?]

     

    CollectionViewmyCollectionView;

           

    publicManageUsersViewModel(SystemUserViewModeluser)

            {


        myCollectionView = (

    CollectionView)CollectionViewSource.GetDefaultView(userViewModel);

                myCollectionView.Filter =

    newPredicate<object>(FilterOutA);

    }

           

    publicboolFilterOutA(objectitem)

            {

    //do test

    }


    bbotond



    • Edited by botond1 Thursday, July 03, 2014 7:01 PM
    Thursday, July 03, 2014 7:00 PM

Answers