コード例 #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);
        }