This is a migrated thread and some comments may be shown as answers.

Looking at the style used in the theme

1 Answer 27 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 21 Oct 2013, 09:20 PM
I want to copy the linear gradient that I see used in one of the themes for the ListBox, for a border control. I've tried right-mouse button on the relevant control and I see "Edit Style" and then "Edit a Copy...". I've not done this before, and I'd hate to bring in all of the style into my XAML, so what does "Edit a Copy..." do?

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen Vladimirov
Telerik team
answered on 24 Oct 2013, 04:20 PM
Hello Rod,

All xaml files used to style our controls can be found on the following path:
<RadControls_installation_dir>/Themes.Implicit/WPF40/<used theme> / Themes. In your case you can take a look at Telerik.Windows.Controls.xaml - the styles for RadListBox and RadListBoxItems are in this file, so you can get them and find the brush you need. After that you can find the brush and add it as a resource in your application.

Another option is to use NoXaml dlls and merge the implicit styles in your project. You can find more information here. After that you will be able to use the brush (with its key) directly in your code, without defining it again.

Hopefully this helps. Feel free to contact us in case you have any other problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ListBox
Asked by
Rod
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or