public void RefreshCircularGauge() { this.Content = null; windSpeed = null; //windSpeed2 = null; WindSpeedForecastAsync(weather); RefreshCircularGaugeAnimationAsync(); }
//private RealTimeLine windSpeed2; /// <summary> /// Shows the Circular Gauge Chart from Wind Speed forecast. /// </summary> /// <param name="weather"> Weather info</param> private async Task WindSpeedForecastAsync(ActualWeather weather) { Grid grid = new Grid { VerticalOptions = LayoutOptions.FillAndExpand, HorizontalOptions = LayoutOptions.FillAndExpand, Padding = 5, RowDefinitions = { new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }, //new RowDefinition { Height = new GridLength(0.5, GridUnitType.Star) }, }, ColumnDefinitions = { new ColumnDefinition { Width = new GridLength(1, GridUnitType.Star) } } }; windSpeed = new DashBoard.CircularGaugeChart(weather); //windSpeed2 = new RealTimeLine(); grid.Children.Add(windSpeed.chartView, 0, 0); //grid.Children.Add(windSpeed2.chartView, 0, 1); Content = grid; windSpeed.chartView.Chart.Header.Font.Size = 15; //windSpeed2.chartView.Chart.Header.Font.Size = 15; windSpeed.chartView.Chart.Header.Font.Color = Color.White; //windSpeed2.chartView.Chart.Header.Font.Color = Color.White; windSpeed.chartView.Chart.SubHeader.Visible = true; windSpeed.chartView.Chart.SubHeader.Font.Color = Color.White; windSpeed.chartView.Chart.SubHeader.Alignment = TextAlignment.End; windSpeed.chartView.Chart.SubHeader.Font.Size += 4; }