public async void Execute(object parameter) { string response = (string)await FormatedWeatherResponse.GetTextAsync(); var textBlock = (TextBlock)parameter; textBlock.Text = response; }
protected override async void Invoke(object parameter) { TextBlock textBlock = (TextBlock)((RoutedEventArgs)parameter).Source; textBlock.Text = await FormatedWeatherResponse.GetTextAsync(); }
public async void OnLoad() { WeatherText = await FormatedWeatherResponse.GetTextAsync(); }