예제 #1
0
        static void OnSourceChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CachedImageCtrl img = (CachedImageCtrl)obj;

            img.imgImage.Source = (BitmapSource)args.NewValue;
        }
예제 #2
0
        static void OnColorChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            CachedImageCtrl img = (CachedImageCtrl)obj;

            img.Fill((PictureInfoDTO)args.NewValue);
        }