示例#1
0
 private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri)
 {
     try
     {
         if (bitmap != null && (checkUri == null || image.UriSource == checkUri))
         {
             image.Source = bitmap;
         }
     }
     catch { }
 }
示例#2
0
 private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri)
 {
     try
     {
         if (bitmap != null && (checkUri == null || image.UriSource == checkUri))
         {
             if (!bitmap.IsFrozen)
                 throw new ArgumentException("Image is not frozen.");
             image.Source = bitmap;
         }
     }
     catch { }
 }
示例#3
0
 private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri)
 {
     try
     {
         if (bitmap != null && (checkUri == null || image.UriSource == checkUri))
         {
             if (!bitmap.IsFrozen)
             {
                 throw new ArgumentException("Image is not frozen.");
             }
             image.Source = bitmap;
         }
     }
     catch { }
 }
示例#4
0
 private static void SetImage(LazyImage image, ImageSource bitmap, Uri checkUri)
 {
     try
     {
         if (bitmap != null)
         {
             if (checkUri == null || image.UriSource == checkUri)
             {
                 if (!bitmap.IsFrozen)
                 {
                     System.Diagnostics.Debug.WriteLine("unfreezed. source type is:" + bitmap.GetType());
                 }
                 image.Source = bitmap;
             }
         }
     }
     catch { }
 }