Class ThemeHelper
Defines a set of attached properties that affect the visual appearance and coloring of elements in the Telerik themes.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.Theming.Helpers
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ThemeHelper
Fields
CheckedBackgroundBrushProperty
Identifies the CheckedBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty CheckedBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
CheckedBrushProperty
Identifies the CheckedBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty CheckedBrushProperty
Field Value
System.Windows.DependencyProperty
|
CornerRadiusProperty
Identifies attached System.Windows.CornerRadius for controls which do not own one. This is an attached property.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
System.Windows.DependencyProperty
|
DisabledBackgroundBrushProperty
Identifies the DisabledBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty DisabledBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
DisabledBrushProperty
Identifies the DisabledBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty DisabledBrushProperty
Field Value
System.Windows.DependencyProperty
|
DisabledForegroundBrushProperty
Identifies the DisabledForegroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty DisabledForegroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
FocusBackgroundBrushProperty
Identifies the FocusBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty FocusBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
FocusBrushProperty
Identifies the FocusBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty FocusBrushProperty
Field Value
System.Windows.DependencyProperty
|
FocusVisualMarginProperty
Identifies attached FocusVisualMarginProperty for controls which do not own one. This is an attached property.
Declaration
public static readonly DependencyProperty FocusVisualMarginProperty
Field Value
System.Windows.DependencyProperty
|
MouseOverBackgroundBrushProperty
Identifies the MouseOverBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty MouseOverBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
MouseOverBrushProperty
Identifies the MouseOverBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty MouseOverBrushProperty
Field Value
System.Windows.DependencyProperty
|
PressedBackgroundBrushProperty
Identifies the PressedBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty PressedBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
PressedBrushProperty
Identifies the PressedBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty PressedBrushProperty
Field Value
System.Windows.DependencyProperty
|
ReadOnlyBackgroundBrushProperty
Identifies the ReadOnlyBackgroundBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty ReadOnlyBackgroundBrushProperty
Field Value
System.Windows.DependencyProperty
|
ReadOnlyBrushProperty
Identifies the ReadOnlyBrushProperty for the element. This is an attached property.
Declaration
public static readonly DependencyProperty ReadOnlyBrushProperty
Field Value
System.Windows.DependencyProperty
|
ScrollBarsModeProperty
Identifies the ScrollBarsModeProperty for the ScrollBars of a ScrollViewer. This is an attached property.
Declaration
public static readonly DependencyProperty ScrollBarsModeProperty
Field Value
System.Windows.DependencyProperty
|
Methods
GetCheckedBackgroundBrush(DependencyObject)
Gets the Background Brush for the checked/selected state of the specified element.
Declaration
public static Brush GetCheckedBackgroundBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetCheckedBrush(DependencyObject)
Gets the BorderBrush for the checked/selected state of the specified element.
Declaration
public static Brush GetCheckedBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetCornerRadius(DependencyObject)
Gets the System.Windows.CornerRadius for the specified element.
Declaration
public static CornerRadius GetCornerRadius(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.CornerRadius
|
GetDisabledBackgroundBrush(DependencyObject)
Gets the BorderBrush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledBackgroundBrush(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.Brush
|
GetDisabledBrush(DependencyObject)
Gets the BorderBrush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledBrush(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.Brush
|
GetDisabledForegroundBrush(DependencyObject)
Gets the Foreground Brush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledForegroundBrush(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.Brush
|
GetFocusBackgroundBrush(DependencyObject)
Gets the Background Brush for the focused state of the specified element.
Declaration
public static Brush GetFocusBackgroundBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetFocusBrush(DependencyObject)
Gets the BorderBrush for the focused state of the specified element.
Declaration
public static Brush GetFocusBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetFocusVisualMargin(DependencyObject)
Gets the FocusVisualMargin for the specified element.
Declaration
public static Thickness GetFocusVisualMargin(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Thickness
|
GetMouseOverBackgroundBrush(DependencyObject)
Gets the Background Brush for the mouse over state of the specified element.
Declaration
public static Brush GetMouseOverBackgroundBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetMouseOverBrush(DependencyObject)
Gets the BorderBrush for the mouse over state of the specified element.
Declaration
public static Brush GetMouseOverBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetPressedBackgroundBrush(DependencyObject)
Gets the Background Brush for the pressed state of the specified element.
Declaration
public static Brush GetPressedBackgroundBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetPressedBrush(DependencyObject)
Gets the BorderBrush for the pressed state of the specified element.
Declaration
public static Brush GetPressedBrush(DependencyObject element)
Parameters
System.Windows.DependencyObject
element
|
Returns
System.Windows.Media.Brush
|
GetReadOnlyBackgroundBrush(DependencyObject)
Gets the Background Brush for the read only state of the specified element.
Declaration
public static Brush GetReadOnlyBackgroundBrush(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.Brush
|
GetReadOnlyBrush(DependencyObject)
Gets the Brush for the read only state of the specified element.
Declaration
public static Brush GetReadOnlyBrush(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
System.Windows.Media.Brush
|
GetScrollBarsMode(DependencyObject)
Gets the display mode for the ScrollBars of a ScrollViewer. This mode takes effect for themes like Fluent and Crystal, which by design have thin ScrollBars that expand their size on MouseOver. This property can only be applied to the ScrollBar element.
Declaration
public static string GetScrollBarsMode(DependencyObject d)
Parameters
System.Windows.DependencyObject
d
|
Returns
System.String
|
SetCheckedBackgroundBrush(DependencyObject, Brush)
Sets a Background Brush for the checked/selected state of the specified element.
Declaration
public static void SetCheckedBackgroundBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetCheckedBrush(DependencyObject, Brush)
Sets a BorderBrush for the checked/selected state of the specified element.
Declaration
public static void SetCheckedBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetCornerRadius(DependencyObject, CornerRadius)
Sets the System.Windows.CornerRadius for the specified element.
Declaration
public static void SetCornerRadius(DependencyObject element, CornerRadius value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.CornerRadius
value
|
SetDisabledBackgroundBrush(DependencyObject, Brush)
Sets a Brush for the disabled state of the specified element.
Declaration
public static void SetDisabledBackgroundBrush(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject
obj
|
System.Windows.Media.Brush
value
|
SetDisabledBrush(DependencyObject, Brush)
Sets a BorderBrush for the disabled state of the specified element.
Declaration
public static void SetDisabledBrush(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject
obj
|
System.Windows.Media.Brush
value
|
SetDisabledForegroundBrush(DependencyObject, Brush)
Sets a Foreground Brush for the disabled state of the specified element.
Declaration
public static void SetDisabledForegroundBrush(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject
obj
|
System.Windows.Media.Brush
value
|
SetFocusBackgroundBrush(DependencyObject, Brush)
Sets a Background Brush for the focused state of the specified element.
Declaration
public static void SetFocusBackgroundBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetFocusBrush(DependencyObject, Brush)
Sets a Background Brush for the focused state of the specified element.
Declaration
public static void SetFocusBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetFocusVisualMargin(DependencyObject, Thickness)
Gets the FocusVisualMargin for the specified element.
Declaration
public static void SetFocusVisualMargin(DependencyObject element, Thickness value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Thickness
value
|
SetMouseOverBackgroundBrush(DependencyObject, Brush)
Sets a Background Brush for the mouse over state of the specified element.
Declaration
public static void SetMouseOverBackgroundBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetMouseOverBrush(DependencyObject, Brush)
Sets a BorderBrush for the mouse over state of the specified element.
Declaration
public static void SetMouseOverBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetPressedBackgroundBrush(DependencyObject, Brush)
Sets a BorderBrush for the pressed state of the specified element.
Declaration
public static void SetPressedBackgroundBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetPressedBrush(DependencyObject, Brush)
Sets a BorderBrush for the pressed state of the specified element.
Declaration
public static void SetPressedBrush(DependencyObject element, Brush value)
Parameters
System.Windows.DependencyObject
element
|
System.Windows.Media.Brush
value
|
SetReadOnlyBackgroundBrush(DependencyObject, Brush)
Sets a Background Brush for the read only state of the specified element.
Declaration
public static void SetReadOnlyBackgroundBrush(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject
obj
|
System.Windows.Media.Brush
value
|
SetReadOnlyBrush(DependencyObject, Brush)
Sets a BorderBrush for the read only state of the specified element.
Declaration
public static void SetReadOnlyBrush(DependencyObject obj, Brush value)
Parameters
System.Windows.DependencyObject
obj
|
System.Windows.Media.Brush
value
|
SetScrollBarsMode(DependencyObject, ScrollViewerScrollBarsMode)
Sets the display mode for the ScrollBars of a ScrollViewer - Auto, Compact or Normal. This mode takes effect for themes like Fluent and Crystal, which by design have thin ScrollBars that expand their size on MouseOver. This property can only be applied to the ScrollBar element.
Declaration
public static void SetScrollBarsMode(DependencyObject d, ScrollViewerScrollBarsMode value)
Parameters
System.Windows.DependencyObject
d
|
ScrollViewerScrollBarsMode
value
|