I have got an Indexer property in a Class called X, suppose X[Y] gives me a another object of Type Z
<ContentControl Content="{Binding X[Y]}" ...???
How can I make a DataBinding happens inside indexer? It works if I do {Binding [0]} . But {Binding X[Y]} just takes the indexer parameter as a string which is "Y"
Update : Converter is an option, But I have plenty of ViewModel classes with indexer and doesnt have similar collection, So I cant afford to make seperate converters for all those.So I just wanted to know this is supported in WPF if yes, how to declare Content=X[Y] where X and Y are DataContext properties?