IComponentTreeHandler
Defines the contract for handling component tree operations and ambient property management in RadControls.
IComponentTreeHandler extends ILayoutHandler to provide comprehensive component tree management capabilities including element tree creation, initialization, and ambient property handling. This interface is essential for RadControls that need to manage complex element hierarchies.
The interface handles ambient properties (properties that can be inherited from parent controls such as BackColor, ForeColor, and Font), theme management, tooltip support, and focus cues. It provides the foundation for RadControl's element tree architecture.
Implementers are responsible for creating and managing the root element, handling tree loading operations, and coordinating with the layout system to ensure proper rendering and behavior.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public interface IComponentTreeHandler : ILayoutHandler
Inherited Members
Properties
ComponentInputBehavior Behavior { get; }
ComponentThemableElementTree ElementTree { get; }
Size ImageScalingSize { get; set; }
bool Initializing { get; }
bool IsDesignMode { get; }
RootRadElement RootElement { get; }
ImageList SmallImageList { get; set; }
Size SmallImageScalingSize { get; set; }
string ThemeClassName { get; set; }
Methods
void CallOnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
void CallOnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
void ControlThemeChangedCallback()
Returns the value for some ambient properties like BackColor, ForelColor, Font, etc.
void InvalidateElement(RadElement element, Rectangle bounds)
void InvalidateIfNotSuspended()
void LoadElementTree()
Updates after a change in an ambient property like BackColor, ForeColor, Font, etc.
bool OnCaptureChangeRequested(RadElement element, bool capture)
void OnDisplayPropertyChanged(RadPropertyChangedEventArgs e)
void ResumeUpdate()
void SuspendUpdate()
void UnregisterHostedControl(RadHostItem hostElement, bool removeControl)
Events
event ThemeNameChangedEventHandler ThemeNameChanged
event ToolTipTextNeededEventHandler ToolTipTextNeeded