Hello everyone, this is my very first question, i just suscribed, I am using MVVM pattern and i need to change the Text value of a label in my View, when i press a toggle control. The thing is, when i switch between two values of text, the label shows a kind of unwanted blink before take the new value, according to this, i was wondering if using FadeTo method, i could avoid this effect of blink. Please, any idea on how to achieve this would be very appreciated. thanks in advance.
public bool KgToggled
{
get
{
ModifyTextAmount(_kgToggled);
return _kgToggled;
}
set => SetProperty(ref _kgToggled, value);
}
private void ModifyTextAmount(bool flag) { TextLabelKg = flag ? "By Kg" : "By Head"; Amount = flag ? Price * Kg : Price * Heads; }