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.
how can i do basedon for only one theme. like this? BasedOn="{x:Static igThemes:EditorsLunaNormal.XamComboEditor}. This will not work.And in another one you told to write in xamdatagrid loaded event.I should write for all loaded event?I am using around 100 xamdatagrid.I should write for all?So this will harm my performance.So please suggest one more help or send me a sample.
Hello,
I understand what you want to achieve and as I suggested you in my previous posts, you have a couple possible ways to achieve your goal. One of them is to set XamDataGrid’s DataRecordCellAreaStyle Property every time it loads, you can write one handler for all your XamDataGrid’s Loaded events. Your other option is to create your own themes for all the Controls you use in your application. I posted the link how to do so in my previous post. Also to conclude I can say that if you want to override a Theme, you have to set the BasedOn property of the Style that you want to use. Here you can read more about using both Styles and Themes:
http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/12/09/common-style-issues-when-using-the-theme-property.aspx
Hope this helps you.
This will not help me in doing in DataPresenter. i should get all the theme dynamically so that if i change in one place it should affect all xamdatagrid presented in different usercontrols.I have send an sample in which i have added fluent ribbon for dashbord.So, plz solve this is our major issue.....
You can follow this tutorial:
http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=WPF_Creating_a_ThemePack.html
which describes in details how to create your own Theme. You can create your own theme based on the built-in ones and override the DataRecordCellArea and all other Styles you need.
S... can i add.But i am adding Theme=[Current] in XamDataGrid.how can i add these style in xamdatagrid.I am not getting wat ur mentioned.Plz can u send me a sample?