Skip to content

ObservableDictionary

Rico Suter edited this page Jun 3, 2015 · 2 revisions
  • Package: MyToolkit
  • Platforms: All (PCL)

Implementation of an observable dictionary.

var data = new ObservableDictionary<string, object>();
data["MyKey"] = "MyValue"; 
Data = data;

Binding to a value of the dictionary in XAML:

<TextBlock Text="{Binding Data[MyKey]} />
Clone this wiki locally