Inheritance: Windows.UI.Xaml.Media.Imaging.BitmapSource
Ejemplo n.º 1
0
        private static void UriSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue == e.OldValue)
            {
                return;
            }

            StorageCachedImage obj = (StorageCachedImage)d;

            obj.UriSourceChanged();
        }
Ejemplo n.º 2
0
        private static void IsAutoRetryChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue == e.OldValue)
            {
                return;
            }

            StorageCachedImage obj = (StorageCachedImage)d;
            bool value             = (bool)e.NewValue;

            if (value)
            {
                obj.ImageFailed += obj._autoRetryHandler;
            }
            else
            {
                obj.ImageFailed -= obj._autoRetryHandler;
            }
        }