I am creating a special search text box. Among other things, these are two events:
[Category("Behavior")]
public event EventHandler<GenericEventArgs<string>> Search;
[Category("Property Changed")]
public event EventHandler<EventArgs> ActiveColorChanged;
[Category("Property Changed")]
public event EventHandler<EventArgs> InactiveColorChanged;
The fact is that only two bottoms appear in the event constructor of constructor properties (whatever that is ...). And I wonder why. Is it because I do not use the standard EventArgs? This should not be so, because I mean that there are other events that do not use this ... like events related to a keystroke, etc.
The class is GenericEventArgs<T>as follows:
public class GenericEventArgs<T> : EventArgs
{
public T Value { get; private set; }
public GenericEventArgs() : this(default(T)) { }
public GenericEventArgs(T value) { Value = value; }
}
What am I doing wrong here?
Svish source
share