get a reference to your top level component and call invalidateDisplayList();
Thanks for your reply. It didn't work for me.
Actually my problem is, I have done some drag-n-drop functions in my application. while dragging i show the drag drop component as selected on drag enter event and on drag exit event i change it to the normal state. It is works fine. But not always, sometimes the component stays in selected state. once I minimize and maximize the application the component become to its original state. So here i come to understand that i need to refresh the screen every time on drag exit event.
I apply your solution by get the top most reference component like,
(this.parent.parent.parent.parent.parent as Main).invalidateDisplayList()
But it is not work for me.
Any other Ideas please
give a try by calling validateNow();
validateNow(); worked for me
technically that's an update and not a refresh (validateNow()).