private static void LoadImageSourceAsync(Image instance, ImagesCache cache)
 {
     var factory = cache;
     if (factory != null)
     {
         instance.Source = factory.FromCachedResource(GetCachedSource(instance));
     }
 }
Example #2
0
        private static void LoadImageSourceAsync(Image instance, ImagesCache cache)
        {
            var factory = cache;

            if (factory != null)
            {
                instance.Source = factory.FromCachedResource(GetCachedSource(instance));
            }
        }
        public static void OnSharedFactoryChanged(BindableObject sender, ImagesCache oldValue, ImagesCache newValue)
        {
            //Good location to initialize the attached behaviour
            var instance = sender as Image;
            if (instance == null)
            {
                return;
            }

            LoadImageSourceAsync(instance, newValue);
        }
Example #4
0
        public static void OnSharedFactoryChanged(BindableObject sender, ImagesCache oldValue, ImagesCache newValue)
        {
            //Good location to initialize the attached behaviour
            var instance = sender as Image;

            if (instance == null)
            {
                return;
            }

            LoadImageSourceAsync(instance, newValue);
        }
Example #5
0
 public static void SetSharedFactory(BindableObject bo, ImagesCache value)
 {
     bo.SetValue(ImageFactory.SharedFactoryProperty, value);
 }
 public static void SetSharedFactory(BindableObject bo, ImagesCache value)
 {
     bo.SetValue(ImageFactory.SharedFactoryProperty, value);
 }