getValue(controlName: String; memberName: String; paramList: ParamListType): Any;
The getValue method of the JadeXamlControl class returns the value of a Windows Presentation Foundation (WPF) method or property for an entity in the XAML control.
The parameters are combined to form a sequence of accesses to the WPF entities involved. The JADE method parameters are a mixture of property names, method names, and WPF method parameters, as described in the following table.
Parameter | Description |
---|---|
controlName | Name of the WPF FrameworkElement involved. If the name is null or equal to the control name, the search for the memberName starts with the parent control; otherwise the search starts with the first child element with the specified name. The search succeeds when the entity or one of its children is found to have the specified memberName value. An exception is raised if the controlName or memberName is not found. |
memberName | Name of the first method or property being accessed. |
paramList | Remaining property, methods, and parameters being used in sequence. |
The code fragments in the following examples show how these parameters are used.
jadeXamlCtl.getValue("list", "SelectedIndex"); /* returns the integer value of the currently selected item of the list box entity named "list" */
jadeXamlCtl.getValue ("list", "SelectedItem", "Content"); /* returns the text of the currently selected item of the list box (assuming the content is a string) by executing the WPF sequence list.SelectedItem.Content. */
JadeXamlCtl.getValue ("list", "Items", "GetItemAt", 3, "Content") /* returns the text of the list box entry with an index of 3, (assuming the content is a string)by executing the WPF sequence list.Items.GetItemAt(3).Content. */
Note the following restrictions.
Only JADE primitives types are supported as parameters to WPF method calls.
All names are case-sensitive.
Access to static WPF properties and methods is not supported.
The final property or method accessed in the sequence must return a JADE primitive type value.
Parameter types must match the same basic type; that is, an
For a presentation client, calls to this method are not buffered, causing the application server to send a message to the presentation client and wait for the reply.