TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Bharat Leel
NA
104
6.8k
Create Custom Event in Custom UITypeEditor which can be used
Dec 13 2016 8:22 AM
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
{
// Here I want to define custom event "CustomOwner" which I can use publicly
public
override
object
EditValue(
System.ComponentModel.ITypeDescriptorContext context,
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?
Reply
Answers (
0
)
Should I use LINQ or Stored Procedure
Cascading Dropdown list MVC5 using fluent nhibernate