protected IPropertyDescriptor <T> CreateSettingsProperty <T>(string key, Expression <Func <T> > propertySelector, Func <T> defaultValueGetter, Action changedAction = null) { var propertyName = BindingHelper.GetPropertyName(propertySelector); var result = new SettingsPropertyDescriptor <T>(key, m_settingsPropertyStore, propertyName, defaultValueGetter, changedAction); return(result); }
protected IPropertyDescriptor <T> CreateDictionaryProperty <T>(Expression <Func <T> > propertySelector, Func <T> defaultValueGetter, Action changedAction = null) { var propertyName = BindingHelper.GetPropertyName(propertySelector); var result = new DictionaryPropertyDescriptor <T>(m_dictionaryPropertyStore, propertyName, defaultValueGetter, changedAction); return(result); }
protected void NotifyPropertyChanged <T>(Expression <Func <T> > propertySelector) { if (propertySelector == null) { throw new ArgumentNullException("propertySelector"); } var propertyName = BindingHelper.GetPropertyName(propertySelector); NotifyPropertyChanged(propertyName); }