Empty String Check in Trigger
Posted
by Asim Sajjad
on Stack Overflow
See other posts from Stack Overflow
or by Asim Sajjad
Published on 2010-04-05T09:30:08Z
Indexed on
2010/04/05
9:33 UTC
Read the original article
Hit count: 218
wpf
How can I check the empty string in triggers
<Trigger Property="Source" SourceName="ControlName" Value="">
<Setter Property="Height" Value="0" TargetName="ControlName" />
</Trigger>
I have set the Height of the Control to 0 if the source of the imageControl is empty stirnr or not set? How can I do it, Basically If the image is not set then I want to hide the image control in the template. thanks in advance.
© Stack Overflow or respective owner