Hello,
I have created CollectionType Depedency property. When I add item to that collection, I am not getting the notification in XAML.
public Dictionary<string, string> employeeDetails
{
get { return (Dictionary<string, string>)GetValue(employeeDetailsProperty); }
set { SetValue(employeeDetailsProperty, value); }
}
private static readonly DependencyProperty employeeDetailsProperty =
DependencyProperty.Register("employeeDetails",
typeof(Dictionary<string, string>),
typeof(Window),
new PropertyMetadata(new Dictionary<string, string>()));
I am not getting notification in xaml, while executing the below line.
employeeDetails.Add(key, value);
Thanks.