/// <summary>
/// <para>Create toast notification.</para>
/// </summary>
/// <param name="xml">XML document with tile data.</param>
/// <param name="image">Uri to image to show on a toast, can be empty, in that case text-only notification will be shown.</param>
/// <param name="text">A text to display on a toast notification.</param>
/// <returns>
/// <para>A toast object for further work with created notification or null, if creation of toast failed.</para>
/// </returns>
public static Toast Create(string image, string text)
{
int toastImageAndText = Toast.CreateToastImageAndText(image, text);
if (toastImageAndText < 0)
{
return((Toast)null);
}
return(new Toast(toastImageAndText));
}