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
|
Hi, Is there a possibilty to change node color of build-in node, i.e. StartNode in gradient style schema without creating whole custom data template? If not could you provide me with default gradient style data templates?
Thank you in advance.
Regards, Peter |
|
|
Hello Peter Currently there is no way to only override the colors. you will need to provide your own custom node templates, though they are quite simple. I've attached a text file containing the gradient style node templates along with the converters they use. At the bottom of the file you will also find the template selector which you will need to give to the formatter so the DiagramSurface will use these templates. You may want to change the template keys to be strings of your choice rather than the gradient template keys. You will also need to change the namespace names to be the names you are using. 'local' refers to WpfDiagramming.FlowDiagrams, and 'ms' refers to WpfDiagramming.Foundation. I have not included the gradient brush resources so make sure to include your own ones to get it to run. You can also refer to the CustomStyle sample project to see how to override the node templates. I would suggest you work on one template at a time. Let me know if I have missed any resources that you need for these templates. Cheers |
|
|
Hi,
Thanks a lot for the resources. Could you please provide me with StartNodeBackground and EndNodeBackground styles. I found it missing in attachment.
Regards, Peter |
|
|
Hello Peter I have attached the requested resources along with some related ones. Regards |
|