Пример #1
0
 ///<summary>
 ///Gets or sets the element with the specified key.
 ///</summary>
 ///
 ///<returns>
 ///The element with the specified key.
 ///</returns>
 ///
 ///<param name="key">The key of the element to get or set.</param>
 ///<exception cref="T:System.NotSupportedException">The property is set and the <see cref="T:System.Collections.Generic.IDictionary`2"></see> is read-only.</exception>
 ///<exception cref="T:System.ArgumentNullException">key is null.</exception>
 ///<exception cref="T:System.Collections.Generic.KeyNotFoundException">The property is retrieved and key is not found.</exception>
 public object this[string key]
 {
     get { return(innerDictionary[key]); }
     set
     {
         innerDictionary[key] = value;
         if (ownerTheme != null)
         {
             ThemeResolutionService.RaiseThemeChanged(this.ownerTheme.ThemeName);
         }
     }
 }