How to make the Datime.Now dynamic in xamarin forms? I need time to keep running. In this case it is stopped.
I have a Label that captures the data of a class
Label Text="{Binding data}" TextColor="Blue" >HorizontalOptions="CenterAndExpand"/>
public static Tempo getTempo()
{
var tempo = new Tempo() { data = DateTime.Now };
return tempo;
}
In the end I instantiate
public EstiloDinamico()
{
InitializeComponent();
var tempo = tempoViewModel.getTempo();
tvm = new tempoViewModel(tempo);
BindingContext = tvm;
}