Skip to content
Browse files

listen to attribute changes of RichContent members

  • Loading branch information...
1 parent a825a6e commit 71bae7e2d40c4e86fc5aac62d7a9b6c3ffae964f @maul-esel committed Apr 30, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 ChameleonCoder.Core/Files/DataFile.cs
View
4 ChameleonCoder.Core/Files/DataFile.cs
@@ -403,12 +403,14 @@ public ObservableStringDictionary[] ResourceParseRichContent(IRichContentResourc
{
foreach (XmlElement node in contentList.ChildNodes)
{
- var dict = new ObservableStringDictionary(); // todo: listen (?)
+ var dict = new ObservableStringDictionary();
foreach (XmlAttribute attr in node.Attributes)
{
dict.Add(attr.LocalName, attr.Value);
}
members.Add(dict);
+ mappings.Add(dict, node);
+ listeners.Add(dict, new XmlAttributeChangeListener(dict, node)); // listen for changes
}
}
}

0 comments on commit 71bae7e

Please sign in to comment.
Something went wrong with that request. Please try again.