Hi. i have added xamdatagrid and i want line for each record for that xamdatagrid.For that i have added style DataRecordcellarea.
<Setter Property="BorderBrush" Value="#EEEEEEEE"/>
<Setter Property="BorderThickness" Value="0,0,0,2"/>
</Style>
i am facing problem in background brush Selected and Mouseover.It is taking default style if i select igtheme or any theme.how can i overcome this problem.How can i write basedon property for that style and can i write in app.xaml.
Hello,
I have been looking into your sample, but as I said before if you want to add Style based on other Style or Theme you should either add the new Style in the XamDataGrid’s Resources or set it directly to the corresponding Property. Your other option is to copy the Themes from C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\DataPresenter folder, edit them and create Resource dictionaries, which you can use. This way there will be no need of Setting new Styles based on the Themes.
Hope this helps you.
Hi... I tried what u told in loaded event but its not working.I am sending a file which is similar to my project.In that project i am using many xamdatagrid(different values and different xamdatagrid) and how can i set the same styles for all xamdatagrids without writing loaded event for xamdatagrid .cs file.I am sending file in which i have added same xamdatagrid for all tabs(for reference it will be different in my project).Plz help in solving.
Should i do loaded event for every XamDatagrid?I am using around 100 Xamdatagrid so, i should use loaded event for all xamdatagrid?Can't i do in single window so that if i change the theme, same theme should be added in all window(uniformity).Say for example i am using ribbon and in first tab i am using for dashboard.In that i have one tab say options and in that i am using theme selection in which user will change the theme.In such a way that the selected theme should affect 100 xamdatagrids.Plz help in solving this.
I have been looking into your requirement and I can say that since you are not able to add Resources without Keys from code behind your option is to set the Style for all XamDataGrids manually. You can do this in every XamDataGrid’s Loaded event for example.
I want theming for every xamdatagrid,So that i will be having options tab in mainwindow and i will be have different usercontrols containing xamdatagrid.If i go in options and change the theme it should reflect in all xamdatagrid.how can i add dynamically this code?
XamDataGrid1.FieldLayoutSettings.DataRecordCellAreaStyle = currentStyle;
here XamDataGrid1 is name for respective xamdatagrid.But i am using 100 xamdatagrids.So, plz solve this problem.