AcManager.Controls.Services.ImageViewerService.OnImageChanged C# (CSharp) 메소드

OnImageChanged() 개인적인 정적인 메소드

private static OnImageChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
리턴 void
        private static void OnImageChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
            var control = d as UIElement;
            if (control == null) return;
            if (e.OldValue == null) {
                control.MouseLeftButtonDown += Control_MouseDown;
            } else if (e.NewValue == null) {
                control.MouseLeftButtonDown -= Control_MouseDown;
            }
        }