Rad
Controls for WinForms
Search RadControls for WinForms
Contents
Overview
What is new
Release Notes
Installation, Deployment and Distribution
Licensing
Buttons
Calendar
Carousel
Chart
Clock
CommandBar
Dock
DesktopAlert
DropDown and ListControl
Editors
Forms and Dialogs
GridView
ListView
Menus
MultiColumnComboBox
PageView
Panels and Labels
Panorama
PropertyGrid
RibbonBar
RichTextBox
Rotator
Scheduler
Shortcuts
SpellChecker
SplitContainer
Track and Status Controls
TreeView
Wizard
Telerik CAB Enabling Kit
Telerik Presentation Framework
Themes
Visual Style Builder
Using default themes
Using a default theme for the entire application
Using custom themes
Advanced topics
Adding custom redistributable themes to your application
Creating a theme component
Adding a custom theme as a resource
Adding a custom theme as a file
Color Blending
Tools
For More Help
API Reference
Collapse All
Expand All
Code: All
Code: Multiple
Code: C#
Code: Visual Basic
C#
Visual Basic
RadControls for WinForms
Adding a custom theme as a file
Send Feedback
Adding a custom theme as a file:
Create a new Windows Application and drag a RadControl, i.e. RadButton, from your Toolbox to your form.
Create a new custom theme and save it somewhere on your hard drive.
Right-click the project node in the Solution Explorer, choose
Add >> Existing Item
and add the custom theme file. This will automatically copy the custom theme file in your project's directory.
Add a RadThemeManager to the form.
From its Action Menu (click the Smart Tag to open it) choose
Load Theme from file
, then browse to the theme file in the project directory and select it, click Open.
Again from the RadThemeManager's Action Menu, choose
Edit Themes
, set the
ThemeLocation
property according to the following pattern: "~
..\..\ThemeFileName.Extention
", assuming that the theme file is in the project directory.
Now apply the theme to the RadButton.