예제 #1
0
        private static void CallBack(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ImageLoadingControl imgCtl = d as ImageLoadingControl;

            imgCtl.imageShow.Source = null;
            string token = Guid.NewGuid().ToString("N");

            imgCtl.token = token;
            imgCtl.path  = e.NewValue != null?e.NewValue.ToString() : "";

            imgCtl.GetImage(token);
        }
예제 #2
0
        private static void StretchCallBack(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ImageLoadingControl imgCtl = d as ImageLoadingControl;

            imgCtl.imageShow.Stretch = (Stretch)e.NewValue;
        }