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); }
private static void StretchCallBack(DependencyObject d, DependencyPropertyChangedEventArgs e) { ImageLoadingControl imgCtl = d as ImageLoadingControl; imgCtl.imageShow.Stretch = (Stretch)e.NewValue; }