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