KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
We can check some control's string property which has been empty like following code: <Trigger SourceName="atCaption" Property="Text" Value="{x:Static sys:String.Empty}"> <Setter TargetName="imgBack" Property="Margin" Value="0"/> <Setter TargetName="atCaption" Property="Margin" Value="0"/> </Trigger> but, how can one define a condition which is based on a 'not empty' string? <!--unfortunately, can't accept '!=' operator in xaml.--> <Trigger SourceName="atCaption" Property="Text" Value!="{x:Static sys:String.Empty}"> <Setter TargetName="imgBack" Property="Margin" Value="0"/> <Setter TargetName="atCaption" Property="Margin" Value="0"/> </Trigger>
Tags (comma-separated)
Save Edits
Cancel