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. Image for the cookie policy date
close icon

Event Handler for PropertyEditor property Change

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

2 Replies

MF Meera Fathima Syncfusion Team July 10, 2007 02:47 PM UTC




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/



SL SlackBear July 13, 2007 03:15 AM UTC

Hi Meera,

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

Cheers.

Loader.
Live Chat Icon For mobile
Up arrow icon