When creating a Panel in code, I need to define its size to match the dimensions of the layout which will be loaded into it using the LoadLayout method.
If the size of the Panel is not correct, the layout won't display properly. But the dimensions of the layout are only available once it has been loaded.
Is there a method or some way to access a layout's dimensions before the LoadLayout method is called?
If this is not possible, what is the best way to create the correct Panel size to match the layout?
(I have multiple layouts and the one that will be loaded is only known at runtime).
If the size of the Panel is not correct, the layout won't display properly. But the dimensions of the layout are only available once it has been loaded.
Is there a method or some way to access a layout's dimensions before the LoadLayout method is called?
If this is not possible, what is the best way to create the correct Panel size to match the layout?
(I have multiple layouts and the one that will be loaded is only known at runtime).