Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
How do I update a XamDataPresenter if the underlying bound data changes?
posted

I have a XamDataPresenter to which the DataContext is assigned a List object and the elements are displayed as rows in the grid by binding the columns to each element's properties.

If a property of one of the elements is changed programmatically, how do I update the XamDataPresenter to reflect this change?  Toggling the view between grid and carousel does it, but I want to do it without having to do this.

Thanks for any assistance.

Jason

  • 5
    posted

    Tyr to set an ObservableCollection<T> as the DataContext in place of the List.

  • 69686
    posted

    Hello Jason,

    Have you tried using BindingList<T> or calling the method UpdateLayout() of the DataPresenter. If that does not work paste me some code with the objects, the list and the xaml of the DataPresenter.

    Alex.