Overview of the Overview of the Add-On Framework SDK – WPF

The Add-On Framework SDK – WPF enables you to develop functions that act on WPF controls (screen elements).

You can create two types of functions that act on a WPF control - a function with no parameters, or a function with a text parameter. For example, a Disable function (with no parameters) that disables a WPF control, or a SetText function (with a text parameter) that sets the WPF control text. You can also use the service to fire events back to the Real-Time Client, for example, onTextChanged.

A function that returns text requires a parameter. If you only want to return text without a parameter, simply pass the function an empty parameter. Conversely, if you want to pass a parameter and have no return value, simply ignore the return value, that is, in the Real-Time Designer project do not assign the returned value anywhere.

This document describes how to complete the steps above using samples. The Add-On Framework SDK – WPF includes the following files

The sample Visual Studio project (WPF_Addon.zip) includes two sample classes, one for list box screen elements (ListBox_Addon) and one for text box screen elements (Text_Addon). Each class includes a range of functions for acting on the screen element, for example, enabling or disabling a screen element, or setting the text value inside the control.

A sample WPF application (WPF Test Application.exe) to use when developing and testing your application in Real-Time Designer.

The sample Real-Time Designer files:

The sample DLL (WPF_Addon.dll) to be included in the Real-Time Designer folder and in the Real-Time Client deployment.

A sample real-Time Designer project (WPF_Addon.dproj and WPF_Addon.resx).