Hi folks,
I have a Dictionary and want to display the number of items in this dictionary with a Label, without updating the label manually each time I add or remove an item from the dictionary.
I tried it with the Binding class:
Binding bindingNodeCount = new Binding("Text", _graphDisplay.data.nodes.Keys, "Count");
labelNumberOfNodes.DataBindings.Add(bindingNodeCount);
Unfortunately, it is not possible to bind the "Count"-Property (at least it throws me an argument exception, saying he can't bind the Property Count to the DataSource).
Is there an other method to automatically update the display of the Item-Count of my Dictionary?
Thanks in advance, Frank