コード例 #1
0
        private void EmailList_ItemClick(object sender, ItemClickEventArgs e)
        {
            // TODO: not sure how this is getting to be null, need to make simple repro and file platform issue?
            if (e.ClickedItem != null && e.ClickedItem is SampleEmailDataType email)
            {
                _ttbEmail.Text = string.Empty; // Clear current text

                _ttbEmail.AddTokenItem(email); // Insert new token with picked item to current text location

                _acvEmail.RefreshFilter();

                _ttbEmail.Focus(FocusState.Programmatic); // Give focus back to type another filter
            }
        }
コード例 #2
0
 private void TokenBox_Tapped(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
 {
     _ttb.Focus(FocusState.Programmatic); // Give focus back to type another filter
 }