private static void ImageBinarySourceCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { // here we have the callback for the image binary source. PhotoFrame pf = d as PhotoFrame; pf.UpdateImageBinarySource(e); }
private static void OnReadOnlyCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { PhotoFrame frame = d as PhotoFrame; if (frame != null) { frame.SetReadOnly(e.NewValue); } }
private static void ChangedImageCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { PhotoFrame pf = d as PhotoFrame; if (pf != null) { pf.RegisterImageCallback(e); } }