Class ThemeHelper
Defines a set of attached properties that affect the visual appearance and coloring of elements in the Telerik themes.
Inheritance
Namespace: Telerik.Windows.Controls.Theming.Helpers
Assembly: Telerik.Windows.Controls.dll
Syntax
public class ThemeHelper : Object
Fields
CheckedBackgroundBrushProperty
Identifies the Checked
Declaration
public static readonly DependencyProperty CheckedBackgroundBrushProperty
Field Value
System.
|
CheckedBrushProperty
Identifies the Checked
Declaration
public static readonly DependencyProperty CheckedBrushProperty
Field Value
System.
|
CornerRadiusProperty
Identifies attached System.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
System.
|
DisabledBackgroundBrushProperty
Identifies the Disabled
Declaration
public static readonly DependencyProperty DisabledBackgroundBrushProperty
Field Value
System.
|
DisabledBrushProperty
Identifies the Disabled
Declaration
public static readonly DependencyProperty DisabledBrushProperty
Field Value
System.
|
DisabledForegroundBrushProperty
Identifies the Disabled
Declaration
public static readonly DependencyProperty DisabledForegroundBrushProperty
Field Value
System.
|
FocusBackgroundBrushProperty
Identifies the Focus
Declaration
public static readonly DependencyProperty FocusBackgroundBrushProperty
Field Value
System.
|
FocusBrushProperty
Identifies the Focus
Declaration
public static readonly DependencyProperty FocusBrushProperty
Field Value
System.
|
FocusVisualMarginProperty
Identifies attached Focus
Declaration
public static readonly DependencyProperty FocusVisualMarginProperty
Field Value
System.
|
MouseOverBackgroundBrushProperty
Identifies the Mouse
Declaration
public static readonly DependencyProperty MouseOverBackgroundBrushProperty
Field Value
System.
|
MouseOverBrushProperty
Identifies the Mouse
Declaration
public static readonly DependencyProperty MouseOverBrushProperty
Field Value
System.
|
PressedBackgroundBrushProperty
Identifies the Pressed
Declaration
public static readonly DependencyProperty PressedBackgroundBrushProperty
Field Value
System.
|
PressedBrushProperty
Identifies the Pressed
Declaration
public static readonly DependencyProperty PressedBrushProperty
Field Value
System.
|
ReadOnlyBackgroundBrushProperty
Identifies the Read
Declaration
public static readonly DependencyProperty ReadOnlyBackgroundBrushProperty
Field Value
System.
|
ReadOnlyBrushProperty
Identifies the Read
Declaration
public static readonly DependencyProperty ReadOnlyBrushProperty
Field Value
System.
|
ScrollBarsModeProperty
Identifies the Scroll
Declaration
public static readonly DependencyProperty ScrollBarsModeProperty
Field Value
System.
|
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.
|
Returns
System.
|
GetCheckedBrush(DependencyObject)
Gets the BorderBrush for the checked/selected state of the specified element.
Declaration
public static Brush GetCheckedBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetCornerRadius(DependencyObject)
Gets the System.
Declaration
public static CornerRadius GetCornerRadius(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetDisabledBackgroundBrush(DependencyObject)
Gets the BorderBrush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledBackgroundBrush(DependencyObject obj)
Parameters
System.
|
Returns
System.
|
GetDisabledBrush(DependencyObject)
Gets the BorderBrush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledBrush(DependencyObject obj)
Parameters
System.
|
Returns
System.
|
GetDisabledForegroundBrush(DependencyObject)
Gets the Foreground Brush for the disabled state of the specified element.
Declaration
public static Brush GetDisabledForegroundBrush(DependencyObject obj)
Parameters
System.
|
Returns
System.
|
GetFocusBackgroundBrush(DependencyObject)
Gets the Background Brush for the focused state of the specified element.
Declaration
public static Brush GetFocusBackgroundBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetFocusBrush(DependencyObject)
Gets the BorderBrush for the focused state of the specified element.
Declaration
public static Brush GetFocusBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetFocusVisualMargin(DependencyObject)
Gets the FocusVisualMargin for the specified element.
Declaration
public static Thickness GetFocusVisualMargin(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetMouseOverBackgroundBrush(DependencyObject)
Gets the Background Brush for the mouse over state of the specified element.
Declaration
public static Brush GetMouseOverBackgroundBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetMouseOverBrush(DependencyObject)
Gets the BorderBrush for the mouse over state of the specified element.
Declaration
public static Brush GetMouseOverBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetPressedBackgroundBrush(DependencyObject)
Gets the Background Brush for the pressed state of the specified element.
Declaration
public static Brush GetPressedBackgroundBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetPressedBrush(DependencyObject)
Gets the BorderBrush for the pressed state of the specified element.
Declaration
public static Brush GetPressedBrush(DependencyObject element)
Parameters
System.
|
Returns
System.
|
GetReadOnlyBackgroundBrush(DependencyObject)
Gets the Background Brush for the read only state of the specified element.
Declaration
public static Brush GetReadOnlyBackgroundBrush(DependencyObject obj)
Parameters
System.
|
Returns
System.
|
GetReadOnlyBrush(DependencyObject)
Gets the Brush for the read only state of the specified element.
Declaration
public static Brush GetReadOnlyBrush(DependencyObject obj)
Parameters
System.
|
Returns
System.
|
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.
|
Returns
System.
|
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.
|
System.
|
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.
|
System.
|
SetCornerRadius(DependencyObject, CornerRadius)
Sets the System.
Declaration
public static void SetCornerRadius(DependencyObject element, CornerRadius value)
Parameters
System.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
SetFocusVisualMargin(DependencyObject, Thickness)
Gets the FocusVisualMargin for the specified element.
Declaration
public static void SetFocusVisualMargin(DependencyObject element, Thickness value)
Parameters
System.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
System.
|
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.
|
Scroll
|