Click or drag to resize
CalculationWorks Logo
BcfRowViewGetDictionaryValue Method
Get a value from dictionary specified by propertyName.

Namespace: CalculationWorks.ViewModel.Forms
Assembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 3.2.1.2
Syntax
protected Object GetDictionaryValue(
	string propertyName = null
)

Parameters

propertyName (Optional)
Type: SystemString
Name of the property.

Return Value

Type: Object
System.Object.
Exceptions
ExceptionCondition
ArgumentNullExceptionpropertyName is null
Remarks

propertyName has a CallerMemberNameAttribute and can be inferred at compile time.

Examples

This example shows how to add a custom property to a BCF-Editor generated typed BcfRowView.

partial class PersonRowView {
    public int NewProperty {
        get { return (int) (GetDictionaryValue() ?? 0); }
        set {
            SetDictionaryValue(value);
            NotifyPropertyChanged();
        }
    }
}
Version Information

CalculationWorks.ViewModel.Forms

Supported in: 3.2
See Also