hi,same as tilte can't binding time from api in SFdigitalgauge
my snippet
<StackLayout>
<gauge:SfDigitalGauge Value="{Binding datetime}" SegmentStrokeWidth="5" BackgroundColor="White"
HeightRequest="100" WidthRequest="375"
DisabledSegmentAlpha="25" DisabledSegmentColor="Gray"
CharacterHeight="90" CharacterWidth="25"
HorizontalOptions="Center" VerticalOptions="Center"
CharacterType="EightCrossEightDotMatrix"
CharacterStrokeColor="#146CED"/>
</StackLayout>
model
class Time
{
}
public class Rootpos
{
public string datetime { get; set; }
public string timezone_name { get; set; }
public string timezone_location { get; set; }
public string timezone_abbreviation { get; set; }
public int gmt_offset { get; set; }
public bool is_dst { get; set; }
public string requested_location { get; set; }
public double latitude { get; set; }
public double longitude { get; set; }
}
private async void Button_Clicked1(object sender, EventArgs e)
{
await Navigation.PushAsync(new Page1());
var request1 = new HttpRequestMessage();
request1.RequestUri = new Uri("https://timezone.abstractapi.com/v1/current_time/?api_key=token&location=Oxford, United Kingdom");
request1.Method = HttpMethod.Get;
request1.Headers.Add("Accept", "application/json");
request1.Headers.Add("x-api-key", "token");
var client1 = new HttpClient();
HttpResponseMessage response1 = await client1.SendAsync(request1);
string content1 = await response1.Content.ReadAsStringAsync();
Rootpos dataObjects1 = JsonConvert.DeserializeObject<Rootpos>(content1);
Console.WriteLine(dataObjects1.ToString());
}
thanks