Create Custom Event in Custom UITypeEditor which can be used publiclyI have one specific requirement.
Using workflow 3.5 I have created and used Custom UITypeEditor.
public static DependencyProperty CustomOwnerProperty= DependencyProperty.Register("CustomOwner", typeof(string), typeof(CustomClass));
[Editor(typeof(CustomOwnerUIEditor), typeof(System.Drawing.Design.UITypeEditor)), TypeConverter(typeof(Utility.Utility.TypeConverterToRestrict))]
public string CustomOwner
This is custom class which have CustomOwner property which is using CustomOwnerUIEditor class as per below
public class CustomOwnerUIEditor: System.Drawing.Design.UITypeEditor
// Here I want to define custom event "CustomOwner" which I can use publicly
public override object EditValue(
System.IServiceProvider provider, object value)
// This is place where I want to raise custom event "CustomOwner" created for this editor.
This all custom classes/code is created in CustomWorkflow project with framework 3.5, I have added this CustomWorkflow project as reference in RootProject which is in framework 4.5
Now at the time of initialization of Workflow Designer I want to access this CustomOwnerUIEditor and register it's Custom Event "CustomOwner" and when use clicks on edit button at that time CustomOwnerUIEditor's EditValue() method called and it should raise custom event so I can handle this event in RootProject which is parent project to CustomWorkflow which is used as reference.
How can I achieve this? or is this possible or not?