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
391
IsDataChanged selectorDataChanged IsDirty
posted

Using the 10.2 version of the grid or presenter i'm trying to add a datatrigger on the grid which does something visible, like making the font bold. This datatrigger should be databinded to a property of the dataitem but somehow i'm not able to figure this out in xaml. I found a multitrigger that listens to IsDataChanged and makes selectorDataChanged visible, but the value of this property is often false while the object is in fact dirty.

I tried several style's like

 

 

<Style TargetType="{x:Type igDP:RecordPresenter}">
  <Style.Triggers>
   
<DataTrigger Binding="{Binding DataItem.IsDirty}" Value="True">
      
<Setter Property="Background" Value="Green" />
   
</DataTrigger>
</Style.Triggers>
</Style>

 

but nothing works.. using TargetType igDP:DataPresenter or something else doesn't work either.

Parents Reply Children