Adding and removing handlers that have additional parameters?
<p>When you are adding and <strong>removing</strong> event handlers and you want to have additional parameters, how do you go about doing this? The below code is like something i would want but obviously does not work.</p>

<p>How would you go about this? - it's troublesome that i cant use delegates or lambdas as i need to also remove the handler.</p>

<pre><code>    private static void IsDefaultChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
    {
        if ((bool)args.NewValue)
        {
            Window.Current.CoreWindow.KeyUp += CoreWindowOnKeyUp(dependencyObject);
        }
        else
        {
            Window.Current.CoreWindow.KeyUp -= CoreWindowOnKeyUp(dependencyObject);
        }

    }

    private static void CoreWindowOnKeyUp(CoreWindow sender, KeyEventArgs args, DependencyObject dependencyObject)
    {
        ((ICommand)dependencyObject.GetValue(Button.CommandProperty)).Execute(null);
    }
</code></pre>
