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
|
I took the CustomNodeType project that comes with the product, and simply added one line in the MainWindow.xaml: Template="{DynamicResource MyWindowTemplate}" When using a Window template, the DiagramSurface shows two undesirable behaviors: 1) It loses the CursorVisual when dragging items from the toolbox to the diagram surface. It appears to still "drop" the item in place, but the visual floating item is no longer present. 2) Dragging on any outbound connection causes a NullReferenceException. I have attached the modified project to this thread to reproduce the error. By default, it contains the Template line specified above, and the undesirable behaviors. Simply delete the line, and it will behave as normal. This issue is currently preventing my team from being able to use your control in our application. We would like to request your guidance, or a workaround. Thanks. |
|
|
Hello Thanks for pointing this out. The undesirable behaviors are a result of failing to find the adorner layer. WPF diagramming works by using the adorner layer of the Window control to display dragging visuals. All you need to do to fix this issue is include an AdornerDecorator in your WindowTemplate. That will look something like this:
<Grid Background="White"> Regards |
|
|
Thanks, Jason. That fixed the issue we were having. Appreciate your help on this! |
|