The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, upgrade from v3.3.0.0 to v4.4.0.51 in VS2003. The new version v4.4.0.51 adds more action commands to the undo history. for example, when click and drag to move a node to a new place, if adds 'Move nodes' first, them adds two 'Set Property' commands to the undo history instead of just adding 'Move nodes' to the undo history. I know why the two 'Set Property' actions happend is because the node has been designed in the way that it changes background color when mouse enters and leaves it.
But our same code in v3.3.0.0 only add 'Move nodes' action to redo history that is perfectly fine.
How can I setup in a way that 'Set Property' action will not be added to undo history? in other words, I only want to 'Insert Node', 'Move Nodes','Delete Node' etc actions to be added to redo history.
Thanks,
Lan
Following code is the Symbol Node class to change its backgroun color when mouse enter and leave the node:
protected override void OnMouseEnter(NodeMouseEventArgs evtArgs) { // // TODO: Add ConditionSysbol.OnMouseEnter implementation if (mOldColor==clsConst.TREE_NULL_COLOR) { mOldColor=this.rect.FillStyle.Color; this.rect.FillStyle.Color =clsConst.TREE_HOVER_COLOR; Model md=this.Root as Model; if (md!=null) md.UpdateViews();
}
}
protected override void OnMouseLeave(NodeMouseEventArgs evtArgs) { // // TODO: Add ConditionSysbol.OnMouseLeave implementation if (mOldColor!=clsConst.TREE_NULL_COLOR) { this.rect.FillStyle.Color = mOldColor; mOldColor=clsConst.TREE_NULL_COLOR; Model md=this.Root as Model; if (md!=null) md.UpdateViews(); } }
J.J.Nagarajan Syncfusion Team January 20, 2007 12:06 AM UTC
Hi Lan,
We have made many changes to the SourceCodes of 4.4.0.51 to make the product more flexible,User-Friendly ,to increase the performance etc. The new version (4.4.0.51) includes more action commands including SetPropertyCmd to the Undo history. So the color changed action has been added in the undo history.
I will consult our development team regarding this and let you know.