How to delay the Setter to be in affect for 0.5 sec in DataTrigger ?
Posted
by
vladc77
on Stack Overflow
See other posts from Stack Overflow
or by vladc77
Published on 2010-12-23T18:48:58Z
Indexed on
2010/12/23
18:54 UTC
Read the original article
Hit count: 415
I am wondering if it possible to delay a datatrigger to change layout for 0.5 a second. Is any easy way to do it? I need to set the visibility of the object but wait for 0.5 a second. Any adeas are highly appreciated.
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type ListBox}}, Path=SelectedItem.Attributes[retract].Value}" Value="True">
<Setter TargetName="ListboxIemtextBlock" Property="Visibility" Value="Hidden" />
</DataTrigger>
© Stack Overflow or respective owner