This project is read-only.
1

Closed

EventCommander or SingleEventCommand can't work for DependencyPropertyChanged Event.

description

private Delegate GetEventMethod(EventInfo ei)
    {
        if (ei == null)
            throw new ArgumentNullException("ei");
        if (ei.EventHandlerType == null)
            throw new ArgumentException("EventHandlerType is null");
        if (_method == null)
        {
                _method = Delegate.CreateDelegate(
                    ei.EventHandlerType, this,
                    GetType().GetMethod("OnEventRaised",
                    BindingFlags.NonPublic | BindingFlags.Instance));
        }
 
for DependencyProperty, OnEventRaised should be changed to OnDependencyPropertyChangedEventRaised.
Closed Nov 27, 2011 at 6:14 PM by sachabarber
Not an issue

comments