Despite having read similar questions, I could not find any one that worked well in my case.
Basically, in order to extend the functionality of the TableRow class, I created a new one in which I have registered a DependencyProperty to clear the cells, and according to Msdn, I am trying to bind two index from a collection, as follows:
<my:myExtendedClass myProperty="{Binding Path=MyCollection[index1,index2]}">
However, I get the following error when I try to pass more than one index:
Error in Template: 'Unexpected token 'String' in rule: 'MarkupExtension ::= '{' TYPENAME (Arguments)? @'}'', in '{Binding Path=MyCollection[index1,index2]}'.'
Other approach would be bind the whole object MyCollection
, but, in this way, I would not know which items I have to check each time I call the method.
So, how should I proceed? Thanks in advance!