1
Answer

wpf Binding help

Photo of leelha

leelha

11y
1k
1
Hi,
I have a dictionary as below:
public IDictionary<string, EntityProperty> MyItem { get; set; }

and I want to bind it to a textbox. My code is:

<TextBlock Text="{Binding Path=MyItem[1].Value.StringValue}" FontSize="24" FontWeight="Bold"/>

But it is not working. need help.

Answers (1)