コード例 #1
0
        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);
        }
コード例 #2
0
        private static void OnReadOnlyCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PhotoFrame frame = d as PhotoFrame;

            if (frame != null)
            {
                frame.SetReadOnly(e.NewValue);
            }
        }
コード例 #3
0
        private static void ChangedImageCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PhotoFrame pf = d as PhotoFrame;

            if (pf != null)
            {
                pf.RegisterImageCallback(e);
            }
        }