AD
Administrator
Syncfusion Team
February 18, 2005 09:50 PM UTC
Hi Jose,
I will have to take a look at your SymbolLabel subclass and your implementation to determine the problem. I tried using a subclassed SymbolLabel type in the DynamicSymbol sample and the editing works as expected. The following is the code that I used,
CustomSymbolLabel lbl = new CustomSymbolLabel();
this.AddLabel(lbl);
lbl.Text = "Hello World";
lbl.Anchor = BoxPosition.Center;
lbl.BackgroundStyle.Color = Color.Transparent;
Please try to attach a small sample that shows the problem and I will take a look at it.
But I am curious about why you require a subclass of the SymbolLabel to be notified of changes to the label text. All that is required is for you to handle the Diagram.Model.PropertyChanging/PropertyChanged events and examine whether the Node undergoing the change is a SymbolLabel and the property being changed is its ''Text''. The PropertyEventArgs will get you the new and old values of the text, and the SymbolLabel''s Container should fetch you the Symbol that is hosting the label.
Regards,
Prakash
Syncfusion, Inc