skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ThemeHelper

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

Inheritance
System.Object
ThemeHelper
MaterialAssist
Namespace: Telerik.Windows.Controls.Theming.Helpers
Assembly: Telerik.Windows.Controls.dll

Syntax

public class ThemeHelper : Object

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.