WhileContainsText still triggers when text is empty

What

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

Replicate

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

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.

Hi!

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