Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Assigning a style from an external resource to a field on the grid.
posted

Hi,

I have to change the background colour of all the editable fields on all the grid in the solution. I created a xaml file (styles.xaml) in the project -  Common so that it can be used in all the other projects.
The code in the styles.xaml file:
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:igWPF="http://schemas.infragistics.com/xaml/wpf"
             xmlns:igDP="http://infragistics.com/DataPresenter"
            xmlns:ig="http://schemas.infragistics.com/xaml">
   

Now I am trying to access this style on the different views. I have created the resource by putting in the following code.

    

However I am not able to assign the style to the field settings.
The following is the code for my grid on base.xaml


                           
                               
                           
                           
                               
                           
                           
                               
                                   
                                       
                                                                                            EditorType="{x:Type igWPF:XamCheckEditor}" AllowEdit="True" DataItemUpdateTrigger="OnCellValueChange">
                                               
                                                   
                                               
                                           
                                       
                                   
                               
                           
                       

If the style is described in the base.xaml, then the CellValuePresenterStyle will be set to StaticResource and the name of the style. However this style is defined in the styles.xaml which is present in a different project and hence not able to access it.
How could I assign the style for the field?

Thanks in advance.

Parents
No Data
Reply Children
No Data