/// <summary> /// Called when a border in the page is tapped. Each card property in the page is inside a border. /// </summary> private void border_Tap(object sender, GestureEventArgs e) { if (!isSelectionOn) return; if(currSelection != null) currSelection.Opacity = 0; currSelection = sender as Border; // Get selected property name App.CardModel.SelectedCardPropertyName = (string)currSelection.GetType().GetProperty("Name").GetValue(currSelection); // Publish the selected card and property with NFC App.NfcManager.ShowCard(); App.CardModel.StatusMsg = "Tap the phones to compare the cards"; currSelection.Opacity = 0.3; }