 |
| BcfRowViewGetDictionaryValue Method |
Get a value from dictionary specified by propertyName.
Namespace: CalculationWorks.ViewModel.FormsAssembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 3.2.1.2
Syntaxprotected Object GetDictionaryValue(
string propertyName = null
)
Protected Function GetDictionaryValue (
Optional propertyName As String = Nothing
) As Object
protected:
Object^ GetDictionaryValue(
String^ propertyName = nullptr
)
member GetDictionaryValue :
?propertyName : string
(* Defaults:
let _propertyName = defaultArg propertyName null
*)
-> Object
Parameters
- propertyName (Optional)
- Type: SystemString
Name of the property.
Return Value
Type:
ObjectSystem.Object.
Exceptions
Remarks
ExamplesThis 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 InformationCalculationWorks.ViewModel.Forms
Supported in: 3.2
See Also