WhileContainsText still triggers when text is empty


WhileContainsText still triggers when a TextEdit first has an input, but that is then removed.


<Text ux:Name="placeholder" Value="Foo Bar">
      <Set placeholder.Opacity="0" />

At first the placeholder will be visible, but when the text is edited it will be hidden. But if you then proceed to remove all the input again, the placeholder never comes back.


I see you have used a <Set />, this is used to permanently set a value. Use <Change /> instead and your code will work :slight_smile: <Change /> will keep track of your reststate and change your value to the appropriate one when <WhileContainsText />s state change.

You can read more about the <Set/> and <Change /> in the handbook