Skip to content

Instantly share code, notes, and snippets.

@Neferetheka
Created August 8, 2013 18:15
Show Gist options
  • Save Neferetheka/6187169 to your computer and use it in GitHub Desktop.
Save Neferetheka/6187169 to your computer and use it in GitHub Desktop.
TaskHelper for Windows Phone
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Tasks;
namespace Tools
{
public abstract class TaskHelper
{
/// <summary>
/// Launch a share task
/// </summary>
/// <param name="message">Message to share</param>
public static void ShareTask(string message)
{
ShareStatusTask shareTask = new ShareStatusTask();
shareTask.Status = message + " - via My app";
shareTask.Show();}
public static void MailTask(string destinataire, string sujet)
{
var emailComposeTask = new EmailComposeTask
{
To = destinataire,
Subject = sujet
};
emailComposeTask.Show();
}
public static void MarketPlaceMarkTask()
{
MarketplaceReviewTask marketplaceReviewTask = new MarketplaceReviewTask();
marketplaceReviewTask.Show();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment