Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:16:52+00:00 2026-06-13T23:16:52+00:00

If I have a class like the one below: public class MyClass : INotifyPropertyChanged

  • 0

If I have a class like the one below:

public class MyClass : INotifyPropertyChanged
{
    private BindingList<String> myList;

    public BindingList<String> MyList
    {
        get { return myList; }
        set
        {
            if (myList == value) return;
            myList = value;
            OnPropertyChanged("MyList");
        }
    }
}

Do I need to setup the following event handler:

myList.ListChanged += (object sender, ListChangedEventArgs e) => OnPropertyChanged("MyList");

Or is it detected? I know that the BindingList class will look for the INotifyPropertyChanged interface on the templated type it is of so it can determine whether it should raise the ListChanged event, but I am uncertain if it works the other way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:16:53+00:00Added an answer on June 13, 2026 at 11:16 pm

    Your myList field is encapsulated within your class – nothing it does is going to “bubble out” automatically. Things that bind to an instance of your class won’t know about changes in myList unless you propagate them out with something like the event handler you wrote. However, things that bind to the MyList property are getting a direct reference to the BindingList object, so they will see notifications raised by myList.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class like the one below: class Foo { private: std::map<std::string, Bar*>
I have 2 class like below, public class CheckInBean implements Serializable{ private String user;
If I have a class like the one below: public class Foo() { private
Say I have a class with three constructors, like the one below: public class
I have a worker class like the one below: class Worker{ public: int Do(){
I have a Userdetails class like the one below public class UserDetails { public
i have one interface like, public interface Details { int Id { get; set;
I have one of my class method like this shown below : public function
I have a class that contains a boolean field like this one: public class
I have a model like the following one: public class TestModel{ public IList<Field> Fields

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.