1
How to make the Datime.Now. dynamic on Xamarin Forms ? I need time to keep running. In this case it’s 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;
}
at the end I urge
public EstiloDinamico()
{
InitializeComponent();
var tempo = tempoViewModel.getTempo();
tvm = new tempoViewModel(tempo);
BindingContext = tvm;
}