private static void LoadImageSourceAsync(Image instance, ImagesCache cache) { var factory = cache; if (factory != null) { instance.Source = factory.FromCachedResource(GetCachedSource(instance)); } }
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); }
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); }
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); }