Quantcast
Channel: Content property, XML, XAML ...
Viewing all articles
Browse latest Browse all 2

Content property, XML, XAML ...

0
0

I am trying to make a WPF control allowing the creation of flowcharting diagrams. It derives frm the Control class. I use DrawingVisual objects to display the nodes and the links in the diagram. I use intensively adorners for the interactive part and that is great.
I have added two methods ReadXml and WriteXml to load and save a diagram in XML format. So far so good.

 

However, I would also want to serialize this XML description of the diagram in XAML (like the Text property of a TextBox control except that in my case, the XML string must be transformed to a diagram)

Probably, I shall have to use a content property. However, how to control the rendering of the diagram from the XML data? Have I to use a value converter?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images