We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Event Handler for PropertyEditor property Change

Thread ID:

Created:

Updated:

Platform:

Replies:

63710 Jul 8,2007 08:58 PM Jul 12,2007 11:15 PM Windows Forms 2
loading
Tags: Diagram
SlackBear
Asked On July 8, 2007 08:58 PM

Hi Syncfusion Support,

When I was looking at Custom Symbol sample, I just wonder if there is a way to create an Event Handler for the Change Event of the Name property ?

I attempted to use AddValueChanged on props[0] (which is name property, but not sucessful)

if (props[0].SupportsChangeEvents) Console.WriteLine("Supported");
else Console.WriteLine("Not Supported");

props[0].AddValueChanged(this, new EventHandler(ahandler));

The SupportsChangeEvents always return false.

Thanks for your help

Meera Fathima [Syncfusion]
Replied On July 10, 2007 10:47 AM




Hello SlackBear,

I am sorry about this delay in responding.

If your intention is to get notified while the property of node is being modified, you can use this.Diagram.Model.EventSink.PropertyChanged event.

Please refer the below sample code snippet.

this.diagram1.Model.EventSink.PropertyChanged += new PropertyChangedEventHandler(EventSink_PropertyChanged);

void EventSink_PropertyChanged(PropertyChangedEventArgs evtArgs)
{
if (evtArgs.PropertyName == "Name")
{
MessageBox.Show(evtArgs.PropertyName);
}
}

Please let me know whether the above details are helpful to you.

Thanks for using Essential Diagram.
Best Regards,
Meera.

Syncfusion, Inc.
http://www.syncfusion.com/


SlackBear
Replied On July 12, 2007 11:15 PM

Hi Meera,

Thanks heaps, that's exactly what I was looking for.

Cheers.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;