I have read other posts and tried what was suggested. I get an exception "Cannot resolve Targetname" which I assume is the Storyboard.Targetname="ActiveSelected".
Not sure what I am doing wrong. I have a simple sample.
Hello,
I have been looking into your sample application and it seems that you have removed a Border with x:Name equals to ActiveSelected from the style for CellControl. When a cell becomes active a Storyboard is played. This Storyboard changes the ActiveSelected Background to Yellow in your application. The error that you are receiving is because the Storyboard cannot find the ActiveSelected Boarder in order to apply the different Background to it. I have modified the sample application that you have attached in order to avoid this error, by adding the ActiveSelected Border to the template for the CellControl.
If you need any further assistance please do not hesitate to ask.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks I guess I did not understand I had to define the "ActiveSelected" border style. It makes sense now thank you for the help.
Krasimir was able to help me with the selected row appearance. I have added to that a combo box in the row that does not get the selected appearance and while I have tried many things like TemplateBinding. Background I have not been able to get the same style for the combo box.
It will not allow me to attach my sample app but the sample I sent previously can be used and here is how I have the combobox defines for the row column.
<ig:TemplateColumn Key="DepartmentCode" HeaderText="Dept Code" IsReadOnly="False" Visibility="Visible" >
<ig:TemplateColumn.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DepartmentCode}" />
</DataTemplate>
</ig:TemplateColumn.ItemTemplate>
<!--Set editor for template column -->
<ig:TemplateColumn.EditorTemplate>
<!-- <ComboBox BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"> -->
<ComboBox >
<ComboBox.ItemTemplate>
<TextBlock Text="{Binding DepartmentCode, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, UpdateSourceTrigger=Explicit}" />
</ComboBox.ItemTemplate>
</ComboBox>
</ig:TemplateColumn.EditorTemplate>
</ig:TemplateColumn>
Again, thank you for your help it is why I use Infragistics controls.
Bob
I have a combo box on the row that now has the "selected" appearance. The combo box does not have the "selected" appeaerance. This is the only other editor I have on the row beside the text box and I wonder if other editors may have the same issue when I use them. Again I supplied a simple example based on the example I sent before. Thank you for your help.