This sample is derived from the Drag Creating sample. The difference is that the node template has been augmented to show two brown labels showing the width and the height of the node whenever the node is selected.

Note how the labels are automatically updated as the user resizes a node.