ltang Posted April 7, 2008 Report Share Posted April 7, 2008 It seems that from version 0.8.2994.29059, the code below will raise unhandle exception: Chart element = new Chart(); container.Children.Add(element); What I found that to make the code above work, BeginInit is required: Chart element = new Chart(); try { element.BeginInit() container.Children.Add(element); } finally { element.EndInit(); } Question: does ISupportInitialize become a pattern for adding dynamically created chart to container from now on? Link to comment Share on other sites More sharing options...
JuanC Posted April 8, 2008 Report Share Posted April 8, 2008 No, this is a bug that we already fixed in our current build, please send an email to wpf at softwarefx dot com for an updated build. JuanC Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.