Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1945
Field Coloring and Row Highlighting
posted

Hi

I have some fields where some are colored. For selecting / activating a row I've also set a style to change the color. When both of the styles are active I noticed that the row selection is behind the field and thus the color is not solid. Is there a way to bring it to front?

My styles:

<Style TargetType="{x:Type igDP:DataRecordCellArea}">
 <Setter Property="BorderActiveBrush" Value="Orange"/>
</Style>

<igDP:UnboundField  BindingPath="Data.CustomerID" Label="CustomerID" >
 <igDP:Field.Settings>
  <igDP:FieldSettings CellWidth="70"
    LabelWidth="70">
   <igDP:FieldSettings.CellValuePresenterStyle>
    <Style TargetType="{x:Type igDP:CellValuePresenter}">
     <Setter Property="Background" Value="Lavender"/>
    </Style>
   </igDP:FieldSettings.CellValuePresenterStyle>
  </igDP:FieldSettings>
 </igDP:Field.Settings>
</igDP:UnboundField>

Parents
  • 34830
    Offline posted

    Hello Marco,

    The easiest way to solve the issue regarding the border being inconsistent, is to set the Margin property in the style for the CellValuePresenter.

    For example:

    <igwpf:FieldSettings.CellValuePresenterStyle>

              <Style TargetType="{x:Type igwpf:CellValuePresenter}">

                      <Setter Property="Background" Value="Lavender"/>

                       <Setter Property="Margin" Value="0,1,0,1"/>

               </Style>

     </igwpf:FieldSettings.CellValuePresenterStyle>

     

    Please let me know if you have any questions or concerns.

    Sincerely,
    Andrew
    Developer Support I
    Infragistics Inc.
    www.infragistics.com/support

Reply Children
No Data