This shows in the context menu how many Parts are currently selected in the Diagram, updated each time the context menu is shown. Of course you might want to improve on the visual style.
Thank you! That is exactly what I was looking for.
I just have a couple questions about some things in your code:
Why do you pass "" as the second argument of the Binding class? Is it because we are converting a string into the text property of the TextBlock object?
And finally, in the conversion function, what is ofObject() doing there? Do you add it so it applies it to the TextBlock's GraphObject?