MATLAB: How export uifigure with exportgraphics()

exportgraphicsMATLABuifigure

Hello,
I'm trying to save a uifigure (not uiaxe) using
exportgraphics(app.UIFigure,'myfigure.jpg')
I only get a blank picture.
It works well with one uiaxe but I want to export the complete uifigure with all the uiaxes and titles
Does anybody suceeded doing this ?
Thanks
Related Question