Example #1
0
        private void ShareHandler(DataTransferManager sender, DataRequestedEventArgs args)
        {
            if (QuestionsView.SelectedItem != null)
            {
                BindableQuestion question = QuestionsView.SelectedItem as BindableQuestion;

                DataRequest request = args.Request;
                request.Data.Properties.Title       = question.Title;
                request.Data.Properties.Description = "Hey dude! I found this question using the Questions app and I think it may interest you.";
                request.Data.SetUri(question.Link);
            }
        }
Example #2
0
 private async void QuestionsView_ItemClick(object sender, ItemClickEventArgs e)
 {
     BindableQuestion question = e.ClickedItem as BindableQuestion;
     await Launcher.LaunchUriAsync(question.Link);
 }