ClassComponentThemableElementTree
Represents a concrete implementation of RadElementTree that provides comprehensive theming and styling capabilities for Telerik controls, managing theme application and lifecycle within the element hierarchy.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class ComponentThemableElementTree : RadElementTree, IDisposable, IThemeChangeListener
Inheritance: objectRadElementTreeComponentThemableElementTree
Implements:
Inherited Members
Constructors
ComponentThemableElementTree(IComponentTreeHandler)
Declaration
public ComponentThemableElementTree(IComponentTreeHandler owner)
Parameters
owner
Properties
AnimationsEnabled
Gets value indicating whether the animated property changes are suspended for the control. Also see SuspendAnimations().
EnableApplicationThemeName
Declaration
[Browsable(true)]
public bool EnableApplicationThemeName { get; set; }
Property Value
FallbackToControlDefault
Gets or sets a value indicating whether to fallback to control default theme if the control does not support the current theme.
Declaration
[Browsable(false)]
public bool FallbackToControlDefault { get; set; }
Property Value
Theme
Gets the currently used theme.
ThemeClassName
Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.
Declaration
public virtual string ThemeClassName { get; set; }
Property Value
Remarks
By default the return value is RadControl's type FullName; Some controls like drop down menu has different ThemeClassName depending on the runtime usage of the control.
ThemeName
Gets or sets control's preffered theme name. Themes are stored and retrieved using APIs of ThemeResolutionService.
Declaration
[Browsable(true)]
public string ThemeName { get; set; }
Property Value
Remarks
If ThemeResolutionService.ApplicatonThemeName refers to a non-empty string, the theme of a RadControl can differ from the one set using RadControls.ThemeName property. If the themes differ, the RadControls.ThemeName property will be overridden by ThemeResolutionService.ApplicatonThemeName. If no theme is registered with a name as ThemeResolutionService.ApplicatonThemeName, then control will revert to the theme specified by its ThemeName property. If ThemeName is assigned to a non-existing theme name, the control may have no visual properties assigned, which will cause it look and behave in unexpected manner. If ThemeName equals empty string, control's theme is set to a theme that is registered within ThemeResolutionService with the name "ControlDefault".
Methods
Dispose(bool)
Releases the unmanaged resources used by the RadElementTree and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
Overrides
ResumeAnimations()
Resumes the animated property changes for the conrol. For more info see SuspendAnimations()
Declaration
public void ResumeAnimations()
SuspendAnimations()
Suspends the animated property changes for the control. When animation are suspended property changes still occur but without aniumations.
Declaration
public void SuspendAnimations()