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

DataFormComboBoxField and DataFormDataField styles and templates

3 Answers 108 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Moshik
Top achievements
Rank 1
Moshik asked on 07 Apr 2013, 04:01 PM
Hi,

First, let me say that the RadDataForm is a great control, i love it, i need only this bit to make it perfect for me:

I am trying to template the DataFormComboBoxField and DataFormDataField. I want them to look in Disabled mode like they look in Edit mode, for example, i want the Combobox 100% opacity but only the triangle will be light grey, and the textboxes will have the border.

I have 2 problems, the first one :
for some reason i cannot get to the nested DataFormComboBoxField and DataFormDataField in Blend, so i cant edit them.

the second problem:
i tried to achieve the above look with RadComboBox, i edited the ChromeButton and some parts of the style and it worked well, but my app using the Windows8 theme, and the edited style using the default office black theme, i saw in the documentation that i should:
"....manually copy the style, together with all resources it has a reference to, from RadControls installation folder on your machine. This folder contains a Themes folder in which you can find resources for RadComboBox or any other control according to the theme you use...."

 - sorry, but i couldn't find a way to make it work.

i spent a ridiculous  amount of time on it, so a step-by-step will be appreciated. BTW, i am sure i am not the only one that asking for this look of the controls, i think it really should be included in the controls.

Thanks. M.

  

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 08 Apr 2013, 07:45 AM
Hello Moshik,

Generally, if you are editing a style and you want it to be applied for the theme you require, it should be based on it - set BasedOn property of the style so that it points to the theme. 
Still, if you are working with NoXAML binaries, you should based it on the default style as illustrated in this article.

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Moshik
Top achievements
Rank 1
answered on 08 Apr 2013, 07:51 AM
i really tried it all. do you have maybe an example for this?and what about the access to the 

and what about the access to the and what about the access to the DataformComboboxFiled in Blend?
0
Maya
Telerik team
answered on 10 Apr 2013, 08:08 AM
Hi Moshik,

There should be no problems to get the templates of the data form fields (no matter if it is DataFormDataFiled, DataFormComboBoxField, etc.) in Blend. You can do it as with every other template - check out this article for more information.  Which version are you working with ? 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataForm
Asked by
Moshik
Top achievements
Rank 1
Answers by
Maya
Telerik team
Moshik
Top achievements
Rank 1
Share this question
or