Class
ThemeHelper

Defines a set of attached properties that affect the visual appearance and coloring of elements in the Telerik themes.

Definition

Namespace:Telerik.Windows.Controls.Theming.Helpers

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Design", "CA1052:Static holder types should be Static or NotInheritable", Justification = "<Pending>")]
public class ThemeHelper

Inheritance: objectThemeHelper

Derived Classes: MaterialAssist

Fields

CheckedBackgroundBrushProperty

Identifies the CheckedBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CheckedBackgroundBrushProperty

Field Value

DependencyProperty

CheckedBrushProperty

Identifies the CheckedBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CheckedBrushProperty

Field Value

DependencyProperty

CornerRadiusProperty

Identifies attached CornerRadius for controls which do not own one. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CornerRadiusProperty

Field Value

DependencyProperty

DisabledBackgroundBrushProperty

Identifies the DisabledBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisabledBackgroundBrushProperty

Field Value

DependencyProperty

DisabledBrushProperty

Identifies the DisabledBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisabledBrushProperty

Field Value

DependencyProperty

DisabledForegroundBrushProperty

Identifies the DisabledForegroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty DisabledForegroundBrushProperty

Field Value

DependencyProperty

FocusBackgroundBrushProperty

Identifies the FocusBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty FocusBackgroundBrushProperty

Field Value

DependencyProperty

FocusBrushProperty

Identifies the FocusBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty FocusBrushProperty

Field Value

DependencyProperty

FocusVisualMarginProperty

Identifies attached FocusVisualMarginProperty for controls which do not own one. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty FocusVisualMarginProperty

Field Value

DependencyProperty

MouseOverBackgroundBrushProperty

Identifies the MouseOverBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseOverBackgroundBrushProperty

Field Value

DependencyProperty

MouseOverBrushProperty

Identifies the MouseOverBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty MouseOverBrushProperty

Field Value

DependencyProperty

PressedBackgroundBrushProperty

Identifies the PressedBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty PressedBackgroundBrushProperty

Field Value

DependencyProperty

PressedBrushProperty

Identifies the PressedBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty PressedBrushProperty

Field Value

DependencyProperty

ReadOnlyBackgroundBrushProperty

Identifies the ReadOnlyBackgroundBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty ReadOnlyBackgroundBrushProperty

Field Value

DependencyProperty

ReadOnlyBrushProperty

Identifies the ReadOnlyBrushProperty for the element. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty ReadOnlyBrushProperty

Field Value

DependencyProperty

ScrollBarsModeProperty

Identifies the ScrollBarsModeProperty for the ScrollBars of a ScrollViewer. This is an attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty ScrollBarsModeProperty

Field Value

DependencyProperty

Methods

GetCheckedBackgroundBrush(DependencyObject)

Gets the Background Brush for the checked/selected state of the specified element.

Declaration

cs-api-definition
public static Brush GetCheckedBackgroundBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetCheckedBrush(DependencyObject)

Gets the BorderBrush for the checked/selected state of the specified element.

Declaration

cs-api-definition
public static Brush GetCheckedBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetCornerRadius(DependencyObject)

Gets the CornerRadius for the specified element.

Declaration

cs-api-definition
public static CornerRadius GetCornerRadius(DependencyObject element)

Parameters

element

DependencyObject

Returns

CornerRadius

GetDisabledBackgroundBrush(DependencyObject)

Gets the BorderBrush for the disabled state of the specified element.

Declaration

cs-api-definition
public static Brush GetDisabledBackgroundBrush(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Brush

GetDisabledBrush(DependencyObject)

Gets the BorderBrush for the disabled state of the specified element.

Declaration

cs-api-definition
public static Brush GetDisabledBrush(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Brush

GetDisabledForegroundBrush(DependencyObject)

Gets the Foreground Brush for the disabled state of the specified element.

Declaration

cs-api-definition
public static Brush GetDisabledForegroundBrush(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Brush

GetFocusBackgroundBrush(DependencyObject)

Gets the Background Brush for the focused state of the specified element.

Declaration

cs-api-definition
public static Brush GetFocusBackgroundBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetFocusBrush(DependencyObject)

Gets the BorderBrush for the focused state of the specified element.

Declaration

cs-api-definition
public static Brush GetFocusBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetFocusVisualMargin(DependencyObject)

Gets the FocusVisualMargin for the specified element.

Declaration

cs-api-definition
public static Thickness GetFocusVisualMargin(DependencyObject element)

Parameters

element

DependencyObject

Returns

Thickness

GetMouseOverBackgroundBrush(DependencyObject)

Gets the Background Brush for the mouse over state of the specified element.

Declaration

cs-api-definition
public static Brush GetMouseOverBackgroundBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetMouseOverBrush(DependencyObject)

Gets the BorderBrush for the mouse over state of the specified element.

Declaration

cs-api-definition
public static Brush GetMouseOverBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetPressedBackgroundBrush(DependencyObject)

Gets the Background Brush for the pressed state of the specified element.

Declaration

cs-api-definition
public static Brush GetPressedBackgroundBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetPressedBrush(DependencyObject)

Gets the BorderBrush for the pressed state of the specified element.

Declaration

cs-api-definition
public static Brush GetPressedBrush(DependencyObject element)

Parameters

element

DependencyObject

Returns

Brush

GetReadOnlyBackgroundBrush(DependencyObject)

Gets the Background Brush for the read only state of the specified element.

Declaration

cs-api-definition
public static Brush GetReadOnlyBackgroundBrush(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Brush

GetReadOnlyBrush(DependencyObject)

Gets the Brush for the read only state of the specified element.

Declaration

cs-api-definition
public static Brush GetReadOnlyBrush(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

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

cs-api-definition
public static string GetScrollBarsMode(DependencyObject d)

Parameters

d

DependencyObject

Returns

string

SetCheckedBackgroundBrush(DependencyObject, Brush)

Sets a Background Brush for the checked/selected state of the specified element.

Declaration

cs-api-definition
public static void SetCheckedBackgroundBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetCheckedBrush(DependencyObject, Brush)

Sets a BorderBrush for the checked/selected state of the specified element.

Declaration

cs-api-definition
public static void SetCheckedBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetCornerRadius(DependencyObject, CornerRadius)

Sets the CornerRadius for the specified element.

Declaration

cs-api-definition
public static void SetCornerRadius(DependencyObject element, CornerRadius value)

Parameters

element

DependencyObject

value

CornerRadius

SetDisabledBackgroundBrush(DependencyObject, Brush)

Sets a Brush for the disabled state of the specified element.

Declaration

cs-api-definition
public static void SetDisabledBackgroundBrush(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

SetDisabledBrush(DependencyObject, Brush)

Sets a BorderBrush for the disabled state of the specified element.

Declaration

cs-api-definition
public static void SetDisabledBrush(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

SetDisabledForegroundBrush(DependencyObject, Brush)

Sets a Foreground Brush for the disabled state of the specified element.

Declaration

cs-api-definition
public static void SetDisabledForegroundBrush(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

SetFocusBackgroundBrush(DependencyObject, Brush)

Sets a Background Brush for the focused state of the specified element.

Declaration

cs-api-definition
public static void SetFocusBackgroundBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetFocusBrush(DependencyObject, Brush)

Sets a Background Brush for the focused state of the specified element.

Declaration

cs-api-definition
public static void SetFocusBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetFocusVisualMargin(DependencyObject, Thickness)

Gets the FocusVisualMargin for the specified element.

Declaration

cs-api-definition
public static void SetFocusVisualMargin(DependencyObject element, Thickness value)

Parameters

element

DependencyObject

value

Thickness

SetMouseOverBackgroundBrush(DependencyObject, Brush)

Sets a Background Brush for the mouse over state of the specified element.

Declaration

cs-api-definition
public static void SetMouseOverBackgroundBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetMouseOverBrush(DependencyObject, Brush)

Sets a BorderBrush for the mouse over state of the specified element.

Declaration

cs-api-definition
public static void SetMouseOverBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetPressedBackgroundBrush(DependencyObject, Brush)

Sets a BorderBrush for the pressed state of the specified element.

Declaration

cs-api-definition
public static void SetPressedBackgroundBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetPressedBrush(DependencyObject, Brush)

Sets a BorderBrush for the pressed state of the specified element.

Declaration

cs-api-definition
public static void SetPressedBrush(DependencyObject element, Brush value)

Parameters

element

DependencyObject

value

Brush

SetReadOnlyBackgroundBrush(DependencyObject, Brush)

Sets a Background Brush for the read only state of the specified element.

Declaration

cs-api-definition
public static void SetReadOnlyBackgroundBrush(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

SetReadOnlyBrush(DependencyObject, Brush)

Sets a BorderBrush for the read only state of the specified element.

Declaration

cs-api-definition
public static void SetReadOnlyBrush(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

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

cs-api-definition
public static void SetScrollBarsMode(DependencyObject d, ScrollViewerScrollBarsMode value)

Parameters

d

DependencyObject

value

ScrollViewerScrollBarsMode

In this article
DefinitionFieldsCheckedBackgroundBrushPropertyCheckedBrushPropertyCornerRadiusPropertyDisabledBackgroundBrushPropertyDisabledBrushPropertyDisabledForegroundBrushPropertyFocusBackgroundBrushPropertyFocusBrushPropertyFocusVisualMarginPropertyMouseOverBackgroundBrushPropertyMouseOverBrushPropertyPressedBackgroundBrushPropertyPressedBrushPropertyReadOnlyBackgroundBrushPropertyReadOnlyBrushPropertyScrollBarsModePropertyMethodsGetCheckedBackgroundBrush(DependencyObject)GetCheckedBrush(DependencyObject)GetCornerRadius(DependencyObject)GetDisabledBackgroundBrush(DependencyObject)GetDisabledBrush(DependencyObject)GetDisabledForegroundBrush(DependencyObject)GetFocusBackgroundBrush(DependencyObject)GetFocusBrush(DependencyObject)GetFocusVisualMargin(DependencyObject)GetMouseOverBackgroundBrush(DependencyObject)GetMouseOverBrush(DependencyObject)GetPressedBackgroundBrush(DependencyObject)GetPressedBrush(DependencyObject)GetReadOnlyBackgroundBrush(DependencyObject)GetReadOnlyBrush(DependencyObject)GetScrollBarsMode(DependencyObject)SetCheckedBackgroundBrush(DependencyObject, Brush)SetCheckedBrush(DependencyObject, Brush)SetCornerRadius(DependencyObject, CornerRadius)SetDisabledBackgroundBrush(DependencyObject, Brush)SetDisabledBrush(DependencyObject, Brush)SetDisabledForegroundBrush(DependencyObject, Brush)SetFocusBackgroundBrush(DependencyObject, Brush)SetFocusBrush(DependencyObject, Brush)SetFocusVisualMargin(DependencyObject, Thickness)SetMouseOverBackgroundBrush(DependencyObject, Brush)SetMouseOverBrush(DependencyObject, Brush)SetPressedBackgroundBrush(DependencyObject, Brush)SetPressedBrush(DependencyObject, Brush)SetReadOnlyBackgroundBrush(DependencyObject, Brush)SetReadOnlyBrush(DependencyObject, Brush)SetScrollBarsMode(DependencyObject, ScrollViewerScrollBarsMode)
Not finding the help you need?
Contact Support