public static DependencyProperty TestEvent = DependencyProperty.Register("Test", typeof(EventHandler<TestEventArgs>), typeof(Class));
[Description("")]
[Category("")]
[Browsable(true)]
[ValidationOption(ValidationOption.Optional)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public event EventHandler<BeforeEventArgs> Test
{
add
{
base.AddHandler(TestEvent, value);
}
remove
{
base.RemoveHandler(TestEvent, value);
}
}
public class TestEventArgs : EventArgs
{
public BeforeEventArgs()
{
}
}