title: WPF - Get size of UIElement in Memory?
body: <p>Is there a way to get the size of a <code>UIElement</code> that resides in memory and has not yet been rendered?</p>
  
  <p>I currently have a routine that creates a <code>Grid</code> from a <code>DataTable</code> and then adds the Grid into a <code>FixedDocument</code>.  I need to know the size of the <code>Grid</code> because I want to automatically switch from Portrait to Landscape if needed; or even change the <code>FontSize</code> of the grid.</p>