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
180
xammaskededitor and updatesourcetrigger=propertychanged
posted

I have a xammaskededitor whose source is a dataview column and the updatesourcetrigger is set to propertychanged. when the data is being loaded in the screen, propertychanged is firing. this does not occur if the source dataview is empty.

why is this happening and is there a way to prevent the propertychanged from firing on loading the initial data? i still need it to fire when the user actually edits the data field.

thanks,

areen

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Areen,

     

    Thank you for your post. I have been looking into it and I can say that this behavior is expected since I believe that the set methods of your properties you call PropertyChanged. This way when you initialize the data the method is called. I can suggest you add a global variable that can be set after the data is created. Then you can use it in each set method to check if the data is created and if it is, you can call the PropertyChanged method. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

Children