コード例 #1
0
		public void OnItemSelected (object sender, SelectedItemChangedEventArgs e) {
			if (((ListView)sender).SelectedItem == null) {
				return;
			}
			Debug.WriteLine (" xxxxxxxxxxxx  OnItemSelected " + e.SelectedItem.ToString ());
			IsBusy = false;
			StopScanning ();

			var device = e.SelectedItem as IDevice;
			var servicePage = new ServiceList(adapter, device);
			// load services on the next page
			Navigation.PushAsync(servicePage);

			((ListView)sender).SelectedItem = null; // clear selection
		}
コード例 #2
0
        public void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            if (((ListView)sender).SelectedItem == null)
            {
                return;
            }
            Debug.WriteLine(" xxxxxxxxxxxx  OnItemSelected " + e.SelectedItem.ToString());
            IsBusy = false;
            StopScanning();

            var device      = e.SelectedItem as IDevice;
            var servicePage = new ServiceList(adapter, device);

            // load services on the next page
            Navigation.PushAsync(servicePage);

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