Пример #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 { }
 }