[]
        
(Showing Draft Content)

C1.Win.C1Themes.C1Theme.ApplyThemeToControlTree

ApplyThemeToControlTree Method

ApplyThemeToControlTree(Control, Predicate<Control>)

Recursively applies a theme to a control and its children. Controls that do not support themes are ignored (but the theme is applied to their children).

Declaration
public void ApplyThemeToControlTree(Control root, Predicate<Control> applyThemeToSubTree = null)
Parameters
Type Name Description
Control root

The root control to apply the theme to.

Predicate<Control> applyThemeToSubTree

Predicate which, if specified, allows to break theme application on certain nodes in the tree if it returns false.