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
|
Hello, I downloaded the trial version of WPF diagrammer. I am looking it to use in our Work Flow and Process Flow design screens as a Component. It is really good. nice job firstly. and I have some questions . 1. Does DiagramSurface has SelectedItemChanged event. I need this event. According to Selected Node or connection i want show different property pages. 2. Is it possible to disable the editable text box of connections. I find that this is possible via custom styling connection . but i think this is not a good solution. thanks. |
|
|
Hello For your first point, the event you are looking for is called SelectedElementChanged. In the event handler you attach to this, you can use the SelectedElement property on DiagramSurface to get the selected element. This will be a DiagramNodeElement or a DiagramConnectionElement. For your second point we just need to clarify what you need. Would you like to still be able to display connection data on the diagram, but not allow it to be editable, or do you want the texbox to be hidden compleatly. We could add a CanModifyConnectionContent property to the DiagramSurface. If this is false then the textbox in our styles could be set to be non-editable, and also make the border around the textbox never show even if the mouse is over a connection. Let us know if this is what your looking for. Cheers |
|
|
For the first point, i guess SelectedElementChanged event is added in nightly builds . if so no problem for first point. for the second point, actually i need a readonly textbox for connections. i need to display connection data on the diagram, but not editable. CanModifyConnectionContent property will solve my issue. thanks. |
|
|
Indeed the SelectedElementChanged event is be available from the latest nightly build. I have Included the CanModifyConnectionContent property that I suggested, and modifyed the standard styles to support this. This will be available after tonights nightly build. Let us know if it doesn't funtion they way you had in mind. - Jason |
|