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,
Thank you for your post. I have been looking into your sample and I modified it, so now it works as you want. Basically I set the DataRecordCellArea’s Style in the ComboBox’ SelectionChnaged event.
Hope this helps you.
This will not solve my problem.I think u got confuse about my problem.What u have sent an example resembles my problem.I want mouse over and selection of the field based on the theme selection in combo box.But in your example Mouse over and selection background brush is same.it is taking generic theme or Aero theme.So plz solve my problem.If i remove that DataRecordCellArea style in resouce file i can solve the problem but if i remove that i won't get border after for each field and height of each record is minimise.If u got any doubt let me know.
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
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.
I have modified the sample I sent you firstly and now it works as you want. Basically I inherited XamDataGrid and added a Dependency Property called MyProperty, which I bound to the ComboBox’s SelectedItem and used the PropertyChnaged event to set the Style of the XamDataGrid that rises the event. In your solution you need to change XamDataGrids with the custom one, which in my project is called MyXDG and is defined in a file called MyXDG.cs
Thanks.It will work if xamdatagrid is present in mainwindow.If it present in one usercontrol and thati placed in mainwindow style will not affect.Check it i am sending a .zip file.Plz verify it.I am done some changes in that file wat u have sent.
I have modified your sample, so now it works as you want. Basically I changed the Binding of MyProperty, so I can make the connection between it and the ComboBox' SelectedItem. I used the UserControl's Tag Property as helping Property.
All the Styles for the NetAdvantage for WPF product are installed here: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles by default.
Hi.... thanks. I dont no what wrong.It is not working in my project.I have done exactly same wat u did.But no use.can i get xaml files of all the styles so that i can add manually in Resource Dictionary?
Plz send URLor is their any way to do?