You need to use converter , which will allow you to extract your value from Dictionary through ConverterParameter .
public class DictConverter: IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { Dictionary<string,string> data = (Dictionary<string,string>)value; String parameter = (String)parameter; return data[parameter]; } }
XAML will look like this:
<Window.Resources> <converters:DictConverter x:Key="MyDictConverter"/> </Window.Resources> Content="{Binding MyDictProperty, Converter={StaticResource MyDictConverter}, ConverterParameter=foo}"
source share