Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Diagram Shape determined by object
posted

I have a number of objects in a view model that I'm passing to the ItemsSource of my XamDiagram.  I'd like to have the Shape value determined by something in the object before the diagram is rendered.  For example, if my object contains two fields (Name and Type, both strings), how can I set the Shape type to be a Rectangle if the Type=="A", but a Circle if the Type=="B"?

Thank you.

Scott