private static void OnRaiseMouseActivateCommandChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
HwndHost hwndHost = d as HwndHost;
if (hwndHost != null) {
bool newValue = (bool)e.NewValue;
if (newValue) {
AddWndProcUsage(hwndHost);
} else {
RemoveWndProcUsage(hwndHost);
}
}
}