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
2320
Fixed field background
posted

In the XamFeatureBrowser, there's a sample that shows how to change the background of fixed fields.

Basically:

Normal 0 false false false EN-AU X-NONE X-NONE MicrosoftInternetExplorer4

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

<Style.Triggers>

<Trigger Property="IsFixed" Value="True">

<Setter Property="Background">

<Setter.Value>

<LinearGradientBrush StartPoint="0,0" EndPoint="1,0">

<GradientStop Offset="0" Color="#00000000"/>

<GradientStop Offset="1" Color="#19000000"/>

</LinearGradientBrush>

</Setter.Value>

</Setter>

</Trigger>           

</Style.Triggers>

Now in the sample, for those fixed fields, the cells in the fixed fields are highlighted on mouse over and isSelected but when I copy the above XAML into my own grid, they no longer get highlighted.

Can anyone tell me what I'm missing here?

Parents
  • 69686
    posted

    Hello,

    The CellValuePresenter exposes several different properties for background - like Background, BackgroundSelected, BackgroundPrimary, BackgroundActive, BackgroundHover etc. controlling the different states of the Cells/Records. You should probably take into consideration them as well as the Background property.

Reply Children