Jump to content
Software FX Community

Data Binding throws exception when Data Context is cleared


Bober02

Recommended Posts

Hi, I have a Chart which is bound to List of lists of points (lines of points basically) and it uses List transform to bind property "X" to X axis etc. Now, when I call a method which basically clears this List of Lists (removes all series) I get exception from some data binding function, which is unhappy about not having anything on the chart. Similarly, it breaks when I use List.removeAt() for all objects. Any solution? I am happy with removing the Chart (deleting object) when this is invoked, but then I have to set everything (all my xaml properties etc.) again when I add new series and generate new chart right?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...