Example #1
0
        /// <summary>
        /// Called when any contact is selected.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ContactsListSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.result = new ContactPickerTask.PickResult(TaskResult.OK)
            {
                Contact = e.AddedItems[0] as Contact
            };
            this.Completed(this, this.result);

            if (NavigationService.CanGoBack)
            {
                NavigationService.GoBack();
            }
        }
        /// <summary>
        /// Called when any contact is selected.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ContactsListSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.result = new ContactPickerTask.PickResult(TaskResult.OK) { Contact = e.AddedItems[0] as Contact };
            this.Completed(this, this.result);

            if (NavigationService.CanGoBack)
            {
                NavigationService.GoBack();
            }
        }