getValue

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.