I have CustomControl which can appear in multiple way. I have designed a Template for each situation like (dragging, placing, ...)
When a user fires MouseLeftButtonDown
on the Control, The Event handler will changes the Template
of this control and I will make it Draggable
. in this Process ActualWidth and ActualHeight of the Control will have a huge change.
EDIT: Here is it ScreenShot: enter image description here
I must wait for Applying the new Template and then calculate the ActualSize.
How can I wait for this Template Changes in Runtime ?