DataFormComboBoxField and DataFormDataField styles and templates

4 posts, 0 answers
  1. Moshik
    Moshik avatar
    5 posts
    Member since:
    Mar 2013

    Posted 07 Apr 2013 Link to this post

    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.

      
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 Apr 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Moshik
    Moshik avatar
    5 posts
    Member since:
    Mar 2013

    Posted 08 Apr 2013 Link to this post

    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?
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 10 Apr 2013 Link to this post

    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.

Back to Top