I 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))]
- [CategoryAttribute("Property")]
- public string CustomOwner
- {
- get
- {
- return Convert.ToString(this.GetValue(CustomOwnerProperty));
- }
- set
- {
- base.SetValue(CustomClass.CustomOwnerProperty, value);
- }
- }
This is custom class which have CustomOwner property which is using CustomOwnerUIEditor class as per below
- public class CustomOwnerUIEditor: System.Drawing.Design.UITypeEditor
- {
-
-
-
- public override object EditValue(
- System.ComponentModel.ITypeDescriptorContext context,
- System.IServiceProvider provider, object value)
- {
-
- }
- }
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?