Tuesday, August 12, 2014

Combine DataTrigger and Trigger in a WPF MultiDataTrigger

<MultiDataTrigger>
 <MultiDataTrigger.Conditions>
         <Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}" Value="True"/>
  <Condition Binding="{Binding Path=Model.IsRunning, Mode=OneWay}" Value="false"></Condition>
 </MultiDataTrigger.Conditions>
        <Setter TargetName="OuterBorder" Property="Background" Value="{StaticResource DarkBrushMouseOver}" />
</MultiDataTrigger>

No comments:

Post a Comment