This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Is it possible to add nodes from XAML (inside the designer)? I have tried the following but I got a compile error
Error message: 'Nodes' property is a read-only IEnumerable property, which means that 'Mindscape.WpfDiagramming.Diagram' must implement IAddChild. Thanks Klaus |
|
|
Hi Klaus, This isn't currently possible. It would be possible for us to enable it, but we're not sure it would be useful in practice. The reason is that we think it would be difficult to also set up connections in XAML -- there's no convenient way for a connection to identify in XAML which nodes (and connection points) it is connecting. An alternative might be to embed a XML-serialised version of the diagram into your assembly as a resource. You could then load it using DiagramXmlSerializer. |
|