Skip to content

Instantly share code, notes, and snippets.

@anuith
Created June 24, 2012 20:11
Show Gist options
  • Save anuith/2984728 to your computer and use it in GitHub Desktop.
Save anuith/2984728 to your computer and use it in GitHub Desktop.
Windows Phone Hackathon : Facebook & Instagram Sample - ShareTask Code
private void ShareStatus_Click(object sender, System.Windows.RoutedEventArgs e)
{
ShareStatusTask task = new ShareStatusTask();
task.Status = TextBox_Status.Text; // get status text from TextBox_Status
task.Show();
}
private void ShareLink_Click(object sender, System.Windows.RoutedEventArgs e)
{
ShareLinkTask task = new ShareLinkTask();
task.LinkUri = new Uri(TextBox_Url.Text);
task.Title = TextBox_LinkTitle.Text;
task.Message = TextBox_LinkMsg.Text;
task.Show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment