Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 444

Answer by Liyun Zhang - MSFT for The result of a sum is incorrect when all numbers are deleted from a TextField

$
0
0

I can reproduce your problem and I used the trigger to fix it:

<Entry x:DataType="local:MyViewModel"        x:Name="entry"        Keyboard="Numeric"        Text="{Binding Notificado}"        TextColor="Black" ><Entry.Triggers><DataTrigger TargetType="Entry" Binding="{Binding Source={x:Reference entry}, Path=Text.Length}" Value="0"><Setter Property="Text" Value="0"/></DataTrigger></Entry.Triggers></Entry>

Viewing all articles
Browse latest Browse all 444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>