Reset Size of a ResizedNode

Hi Walter,

Am trying to reset size of a resized node, I have defined resizing with “Sizing=Fixed” and set ResizeElementName and SelectionElementName for the panel which is being resized. I have an option to reset size of a node and when I try that, the node just disappears with only selection adornment remaining. During reset am setting the original height and width on the node visual element and model, I tried calling part.Remeasure() on the node in the SizeChanged event handler but nothing shows up on the UI. Are there other operations on Goxam to be performed for a node visual to be re-applied? Any examples for the same

What do you mean by “reset size of a resized node”? Are you looking to have it have its natural size? Or are you trying to set it to a particular size? Or something else?

Yeah, bringing it back to its natural size, even though I set its original height and width the node is not visible, except the outside adornement

You have a TwoWay Binding on the Width and Height, yes? If you set those properties to NaN, do you get the results that you want?

Remember to perform all changes within a transaction.

Setting the go:Part.ResizeElementName to the element where I set height and width helped with the correct resize behaviour.