title: Xaml/Win RT - Wait for controls to be fully rendered
body: <p>In a winRT application, a tap on a button will render multiple controls on the page. A tap on another button will save the content of these controls.</p>
  
  <p>To save the content of the controls, my code iterates the page's control collection.</p>
  
  <p>The problem I have is that it happens that the user taps the save button whereas all controls are not finished rendering yet.</p>
  
  <p>My question is simple: how do I manage to wait for the rendering to be complete before enabling the save button ?</p>
  
  <pre><code>Private Async Sub LoadControls() 
  'create controls ...
  'add controls to a hub section ...
  'add section to a hub, myHub is defined in Xaml
  myHub.Sections.Add(myHubSection)
  End Sub
  
  Private Async Sub ReadControls()
  For Each hubSection in MyHub
  '...
  'not all controls are available here, because they are not yet rendered
  Next
  End Sub
  
  Private Async Sub LoadButton(sender as object, e as RoutedEventArgs) Handles LoadButton.Click
  Await LoadControls()
  End Sub
  
  Private Async Sub SaveButton(sender as object, e as RoutedEventArgs) Handles LoadButton.Click
  Await ReadControls()
  End Sub
  </code></pre>
  
  <p>I have tried a lot of solutions using Dispatcher and stuff, but none worked.
  Is there a simple solution ?
  Thanks</p>