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).
Syntax
'Declaration
Public Shared Sub ApplyThemeToControlTree( _
ByVal As System.Windows.Forms.Control, _
ByVal As C1Theme, _
Optional ByVal As System.Predicate(Of Control) _
)
public static void ApplyThemeToControlTree(
System.Windows.Forms.Control ,
C1Theme ,
System.Predicate<Control>
)
Parameters
- root
- The root control to apply the theme to.
- theme
- The theme to apply.
- applyThemeToSubTree
- Predicate which, if specified, allows to break theme application on certain nodes in the tree if it returns false.
See Also