コード例 #1
0
		public void OnItemSelected (object sender, SelectedItemChangedEventArgs e) {
			if (((ListView)sender).SelectedItem == null) {
				return;
			}

			var service = e.SelectedItem as IService;
			var characteristicsPage = new CharacteristicList(adapter, device, service);
			Navigation.PushAsync(characteristicsPage);

			((ListView)sender).SelectedItem = null; // clear selection
		}
コード例 #2
0
        public void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            if (((ListView)sender).SelectedItem == null)
            {
                return;
            }

            var service             = e.SelectedItem as IService;
            var characteristicsPage = new CharacteristicList(adapter, device, service);

            Navigation.PushAsync(characteristicsPage);

            ((ListView)sender).SelectedItem = null;             // clear selection
        }