I've written a single dialog box to handle error messages, input box, yes/no dialog with metro touch theming.
I show and hide controls and shuffle them into position as necessary.
The file shows 3 images, top one is at design time and the bottom two at run time.
My problem is that I need to catch the window layout after the theme adjusts the sizes of the controls but before they're displayed so I can perform a final shuffle. As you can see, especially on image 3, the position of the buttons, despite being anchored bottom and left/right are a long way off their original site. On image 2 I try to reposition them programatically, but the theme hasnt been fully applied and the button heights are returned to me as 24 when they're actually 32.
Is there an event which I should trap to do this please?