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.
Hello,
For some reason the code snippet that you are posting is not visible. Would you please re-post your code snippet or send it as zip file in order to ensure that it will be received successfully?
You take a look at the following links and read more about how can access WPF Style from Resource file:
http://stackoverflow.com/questions/7761681/loading-wpf-style-from-resource-file
https://social.msdn.microsoft.com/Forums/vstudio/en-US/e37b528e-f797-4b91-84fe-03ddd7fb57c1/custom-style-in-an-external-file?forum=wpf%20
http://stackoverflow.com/questions/10978079/load-control-style-from-separate-file-in-wpf
Please let me know if you require any further assistance on this matter.
Sincerely, ZhivkoEntry Level Software Developer