AdvancedLauncher.Tools.Extensions.HwndHostExtensions.OnCopyBitsBehaviorChanged C# (CSharp) Метод

OnCopyBitsBehaviorChanged() приватный статический Метод

private static OnCopyBitsBehaviorChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
Результат void
        private static void OnCopyBitsBehaviorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            HwndHost hwndHost = d as HwndHost;

            if (hwndHost != null) {
                CopyBitsBehavior newValue = (CopyBitsBehavior)e.NewValue;
                if (newValue != CopyBitsBehavior.Default) {
                    AddWndProcUsage(hwndHost);
                } else {
                    RemoveWndProcUsage(hwndHost);
                }
            }
        }