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? Quote 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.