|
We've moved our application from Windows Forms to WPF. Currently we are Windows Forms Hosting the Mindfusion Windows Forms components, but we'd like to move to native WPF and ideally Silverlight diagramming as well. Sadly, the developer that wrote all our code using these components isn't available now, so the first time I've seen all this is now, having been charged with converting them.
But I've been running into quite a few issues. A lot of the arrow heads, and shapes, and other things appear to be quite different. After a good amount of effort, I've converted over the code, and seem to have only have a few issues left. The amount of effort it's been to try and convert to WPF seems extreme, though, and I'm worried we're doing this wrong. Are there any guides about converting to the WPF components, and what changes need to be made?
1) The sizes as we have them saved on our diagrams from Windows Forms are apparently totally different in WPF, as we now have tiny little diagrams that are a fraction of the size they used to be. If I multiply all the sizes, and start positions and such by 4, it appears to be much closer in size to how it used to be. As close as I can get though, the distance between lanes seems to be calculated differently now.
2) We also used to attach images inside of nodes. No matter how I do this now, the image nodes don't seem to be visible. I've tried for testing to use other nodes, and other things, but AttachTo just doesn't seem to be working.
3) When we set lane titles, it seems to be defaulted to vertical text now, and if I set RotateTitle, the text just vanishes entirely rather than rotating to be horizontal as I expect.
4) Apparently, we've saved some links that point from a node to nowhere (or the same node) that didn't show up, and were ignored in the Windows Forms stuff, but now show up. Should we be handling these ourselves or is there an option to hide them?
|