If we look at out of the box Windows gadgets such as Weather , they include a button (apart from settings) which enables the resize of the gadget window.
Does anybody know how can I include this button my own gadget ?
I have built a custom gadget but does not have this small button.
You need to provide onDock and onUndock handlers for the button to be seen. Please see
onDock event: http://msdn.microsoft.com/en-us/library/ff486201(v=vs.85).aspx
onUndock event: http://msdn.microsoft.com/en-us/library/ff486205(v=vs.85).aspx