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
444
CellValuePresenterStyle and data binding
posted

Hi

I have a collection of objects, the Object has a Enum property giving a Status

I have a XamGrid binding to the collection

On one column I have CellValuePresenterStyle turning the Enum into 1 of 4 images.

All works when creating and initally viewing.

The Enum propery is a DependencyProperty

If I update the data source directly (the objects Enum) I want the Status Image to change, should this work ?

thanks

Martin

 

 

Parents
No Data
Reply
  • 444
    Verified Answer
    posted

    For changes in Objects to trigger through the CellValuePresenter upto the Grid, your object just has to implement INotifyPropertyChanged and tie the DependencyProperty callbacks to raise the change Event

     

     

Children
No Data