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
210
Is it possible to get to the cell in a CellValuePresenterStyle instead of the DataRecord?
posted

Hello!

I want one of my columns to show a image and a TextEditor, the image should be able to change visability depending on valuechange in another column. I made a CellValuePresenterStyle to do this but the object i get is a DataRecord and I need to get to properties on the Cell.

Can someone help me with this please?

/Sara

<Style x:Key="CellStyle" TargetType="{x:Type igDP:CellValuePresenter}" BasedOn="{StaticResource SmallCellValueStyle}">

<Setter Property="Template">

<Setter.Value>

<ControlTemplate>

<Image x:Name="Image"  Source=" ../../../../Resources/Orgchart.png" Visibility="Hidden"/>

<Editors:XamTextEditor Text="{Binding Path=Quantity}" />

<ControlTemplate.Triggers>

<DataTrigger Binding="{Binding Path=IsChildrenModified}" Value="True">

<Setter TargetName="Image" Property="Visibility" Value="Visible" />

</DataTrigger>

</ControlTemplate.Triggers>

</ControlTemplate>

</Setter.Value>

</Setter>

</Style>

Parents Reply Children
No Data