XML serialization of NInteractivity style


Author
Message
Anna Lear
Anna Lear
Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)Junior Member (12 reputation)
Group: Forum Members
Posts: 12, Visits: 1
Is it possible to serialize interactivity styles within a diagram?

Here's my workflow: I load a diagram from disk. Find a shape I want to make interactive and set its InteractivityStyle:
shape.Style.InteractivityStyle = new NInteractivityStyle(true, null, null, CursorType.Default, "http://my.url.com");

Then I attempt to save the NDrawingDocument in XML format, but the XML serialization stops after writing out only a few lines of XML. See attachment for the output file.

I tried to manually edit the NDX file to add InteractivityStyle tags to the desired shapes. But when I did that, I was no longer able to load the diagram from the file. There were no error messages or exceptions. The following code just returned null:

NPersistencyManager mgr = new NPersistencyManager();
NDrawingDocument document = mgr.LoadDrawingFromFile("diagram.ndx");

What am I doing wrong here? Thanks.
Attachments
IncompleteXML.xml (109 views, 1.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search