Please note: In an effort to better serve you, we are in the process of restructuring DevCenter. In the process, we have moved many items that you may be used to finding in DevCenter over to the Main Site. If you are having trouble locating something, please try looking at the following places:
Infragistics controls for Windows Forms Applications are highly extensible. Through the use of UIElements, a developer can easily add functionality that isn't inherently supported by Infragistics controls.
Almost all Infragistics controls are composed of many levels of nested UIElements...For example, an UltraTree control is made up of an UltraTreeUIElement, containing a NodeClientAreaUIElement, containing many TreeNodeUIElements and NodeConnectorUIElements. The TreeNodeUIElements are made up of PreNodeAreaUIElements and NodeSelectableAreaUIElements, which in turn can contain ExpansionIndicatorUIElements and NodeTexUIElements, respectively. All of these UIElements can be manipulated to change their appearance and/or location through Creation Filters and Draw Filters. Creation Filters can also be used to remove existing UIElements or add new ones, including custom UIElements designed by the application developer.This article explains and demonstrates how to create custom UIElements to be inserted into existing Infragistics controls in a Windows Forms user interface.
Implement a CreationFilter through the IUIElementCreationFilter interface.The IUIElementCreationFilter interface can be implemented in any class, but for simplicity, this example implements this interface alone, in its own class.IUIElementCreationFilter contains two methods: BeforeCreateChildElements and AfterCreateChildElements. The BeforeCreateChildElements method is called for each UIElement just after it's created. After this, the UIElement will, if appropriate create other "child" UIElements. After a "parent" has finished creating all of its child UIElements, the AfterCreateChildElements method is called.VB.NET:
C#: