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 8275229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:00:19+00:00 2026-06-08T08:00:19+00:00

I have a Listbox with data-binding to payments of a project. When I add

  • 0

I have a Listbox with data-binding to payments of a project. When I add a new payment, the payment will be added to the list. The add-page is also used to edit the payments. The event is called, in debug-mode I can see the changed value of my payment, but the ListBoxItem is not going to be updated. At the end of the add-page an event will be called, which updates the listbox items:

GlobalNotifier.OnPaymentAdded();

The OnPaymentAdded calls a method which only notifies about the property changes:

OnNotifyPropertyChanged("Project");

The code of the listbox:

<ListBox Name="ListPayments" ItemsSource="{Binding Project.Payments}">
    <ListBox.ItemTemplate>
        <DataTemplate>
            <Grid Margin="10,5,10,0">
                <StackPanel>
                    <TextBlock FontSize="30" Text="{Binding Name}" />
                </StackPanel>
            </Grid>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

Why are new items added, but existing items not updated? Any idea?

  • 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-08T08:00:24+00:00Added an answer on June 8, 2026 at 8:00 am

    What’s happening is that although the Project-object is updated, the Payments object (presumably a List) is not.

    What you could try is the following:

    1. Whenever the List-object is being manipulated (edited, items removed / added), fire the PropertyChanged-event for Projects
    2. You can also switch the List<Project> to an ObservableCollection<Project>, which surely will fix your problem
    3. If switching to ObservableCollection is out of the question for you, implement an override for the OnNavigatedTo() in the view that shows the list, and call the PropertyChanged-events (Project, Payments etc) from there.

    Either one of these should fix your problem – it’s all a matter of taste and preferences.

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

Sidebar

Related Questions

I'm new to WPF data binding. I have a ListBox on a form that
I currently have a list box: <ListBox HorizontalAlignment=Left ItemsSource={Binding Data, ElementName=bookingDomainDataSource} Margin=158,134,0,45 x:Name=bookingListBox Width=429
Hello I have problem with binding data to Listbox. In shortway... I want list
I have a WPF listbox and have updated the list item data template to
I have a list box in WPF as under <ListBox Name=lstName DisplayMemberPath =ListName ToolTip={Binding
I have ListBox data bind to list of users (collection): usersListBox.DataSource = null; usersListBox.DataSource
I have a ListBox (AvailableDevicesListBox), which is populated using data-binding in Silverlight 3. The
I have a listbox named lbselectedcom in my web page. and i am binding
I have a listBox and add data to it like so: for (int x
Within my project I have a Listbox which uses a datatemplate. Within this data

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.