コード例 #1
0
        public async void Execute(object parameter)
        {
            string response = (string)await FormatedWeatherResponse.GetTextAsync();

            var textBlock = (TextBlock)parameter;

            textBlock.Text = response;
        }
コード例 #2
0
        protected override async void Invoke(object parameter)
        {
            TextBlock textBlock = (TextBlock)((RoutedEventArgs)parameter).Source;

            textBlock.Text = await FormatedWeatherResponse.GetTextAsync();
        }
コード例 #3
0
 public async void OnLoad()
 {
     WeatherText = await FormatedWeatherResponse.GetTextAsync();
 }