New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class ThemeHelper

Inheritance: objectThemeHelper

Derived Classes: MaterialAssist

Fields

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

C#
public static readonly DependencyProperty CheckedBackgroundBrushProperty

CheckedBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty CheckedBrushProperty

CornerRadiusProperty

DependencyProperty

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

C#
public static readonly DependencyProperty CornerRadiusProperty

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

C#
public static readonly DependencyProperty DisabledBackgroundBrushProperty

DisabledBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty DisabledBrushProperty

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

C#
public static readonly DependencyProperty DisabledForegroundBrushProperty

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

C#
public static readonly DependencyProperty FocusBackgroundBrushProperty

FocusBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty FocusBrushProperty

FocusVisualMarginProperty

DependencyProperty

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

C#
public static readonly DependencyProperty FocusVisualMarginProperty

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

C#
public static readonly DependencyProperty MouseOverBackgroundBrushProperty

MouseOverBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty MouseOverBrushProperty

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

C#
public static readonly DependencyProperty PressedBackgroundBrushProperty

PressedBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty PressedBrushProperty

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

C#
public static readonly DependencyProperty ReadOnlyBackgroundBrushProperty

ReadOnlyBrushProperty

DependencyProperty

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

C#
public static readonly DependencyProperty ReadOnlyBrushProperty

ScrollBarsModeProperty

DependencyProperty

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

C#
public static readonly DependencyProperty ScrollBarsModeProperty

Methods

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

C#
public static Brush GetCheckedBackgroundBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetCheckedBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

Gets the CornerRadius for the specified element.

C#
public static CornerRadius GetCornerRadius(DependencyObject element)
Parameters:elementDependencyObjectReturns:

CornerRadius

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

C#
public static Brush GetDisabledBackgroundBrush(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Brush

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

C#
public static Brush GetDisabledBrush(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Brush

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

C#
public static Brush GetDisabledForegroundBrush(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Brush

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

C#
public static Brush GetFocusBackgroundBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetFocusBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

Gets the FocusVisualMargin for the specified element.

C#
public static Thickness GetFocusVisualMargin(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Thickness

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

C#
public static Brush GetMouseOverBackgroundBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetMouseOverBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetPressedBackgroundBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetPressedBrush(DependencyObject element)
Parameters:elementDependencyObjectReturns:

Brush

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

C#
public static Brush GetReadOnlyBackgroundBrush(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Brush

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

C#
public static Brush GetReadOnlyBrush(DependencyObject obj)
Parameters:objDependencyObjectReturns:

Brush

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.

C#
public static string GetScrollBarsMode(DependencyObject d)
Parameters:dDependencyObjectReturns:

string

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

C#
public static void SetCheckedBackgroundBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetCheckedBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

Sets the CornerRadius for the specified element.

C#
public static void SetCornerRadius(DependencyObject element, CornerRadius value)
Parameters:elementDependencyObjectvalueCornerRadius

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

C#
public static void SetDisabledBackgroundBrush(DependencyObject obj, Brush value)
Parameters:objDependencyObjectvalueBrush

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

C#
public static void SetDisabledBrush(DependencyObject obj, Brush value)
Parameters:objDependencyObjectvalueBrush

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

C#
public static void SetDisabledForegroundBrush(DependencyObject obj, Brush value)
Parameters:objDependencyObjectvalueBrush

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

C#
public static void SetFocusBackgroundBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetFocusBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

Gets the FocusVisualMargin for the specified element.

C#
public static void SetFocusVisualMargin(DependencyObject element, Thickness value)
Parameters:elementDependencyObjectvalueThickness

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

C#
public static void SetMouseOverBackgroundBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetMouseOverBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetPressedBackgroundBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetPressedBrush(DependencyObject element, Brush value)
Parameters:elementDependencyObjectvalueBrush

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

C#
public static void SetReadOnlyBackgroundBrush(DependencyObject obj, Brush value)
Parameters:objDependencyObjectvalueBrush

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

C#
public static void SetReadOnlyBrush(DependencyObject obj, Brush value)
Parameters:objDependencyObjectvalueBrush

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.

C#
public static void SetScrollBarsMode(DependencyObject d, ScrollViewerScrollBarsMode value)
Parameters:dDependencyObjectvalueScrollViewerScrollBarsMode
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