You can use custom and third-party WPF controls in PowerBuilder .NET, in WPF windows and DataWindow object. Using custom and third-party controls allows you to extend the software system to support a wider range of applications.
If the custom control defines public events, they are dynamically added to the event list of the custom control. You can define your own event handler for any event of a WPF control.
In DataWindow objects, insert custom and third-party WPF controls using the CustomControl component.
A third-party control encapsulated in the CustomControl may have different capabilities of presenting and processing data. If the third-party control can present data (for example, a TextBlock), CustomControl feeds data to this third-party control; if the third-party control can modify data (such as a TextBox), CustomControl retrieves modified data from the third-party control.
When working with third-party or custom controls: