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
75
Set background for column header when column is disabled
posted

Hi,

we want to set the background for a column header when the appropriated column is set disabled.

The style for the CellValuePresenter looks like this:

    <Style x:Key="AbrechenbareLeistungLkzCellValueStyle" 
           BasedOn="{StaticResource EditableCellValuePresenterStyle}"
           TargetType="{x:Type igDP:CellValuePresenter}">
         <Style.Triggers>
            <DataTrigger Binding="{Binding Path=DataItem.IsLkzLocked}" Value="True">
                <Setter Property="IsEnabled" Value="False" />
                <Setter Property="Opacity" Value="0.8" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
 

We have already retemplate the LabelPresenter. Can we check the enable state of the CellValuePresenter from the LabelPresenterStyle or is there another way to achieve this behavior?

Best regards

Lukas

  

Parents Reply Children
No Data