Posted By

cedrelo on 04/05/12


Tagged

DataTrigger RenderTransform


Versions (?)

DataTrigger RenderTransform


 / Published in: XML
 

DataTrigger RenderTransform

  1. <!--Style pour les interupteurs-->
  2. <Style x:Key="GroupRotateLineStyle" TargetType="{x:Type Line}" BasedOn="{StaticResource LineStyle}">
  3. <Setter Property="RenderTransformOrigin" Value="0,0"/>
  4. <Setter Property="Stroke" Value="Green"/>
  5. <Style.Triggers>
  6. <DataTrigger Binding="{Binding GroupCoupling.Digital}" Value="0">
  7. <Setter Property="RenderTransform">
  8. <Setter.Value>
  9. <RotateTransform Angle="-25"/>
  10. </Setter.Value>
  11. </Setter>
  12. <Setter Property="Stroke" Value="IndianRed"/>
  13. </DataTrigger>
  14. </Style.Triggers>
  15. </Style>

Report this snippet  

You need to login to post a comment.