I have an application that shows the PDF documents that are in a SharePoint directory, showing their titles and clicking on the title allows you to view them with PDF Viewer.
However, there are times when there are no PDF documents to view in a folder and you see the window in gray as I show in the photo.
This causes confusion for the user, since they believe that the titles are not loading.
How can I only display the PDF viewer container if there is a PDF document title to display?
Example screen without documents to see:
Example screen with a document to see:
You could use the visible property.
I see you are using a gallery for at least the Titlenames.
//Visible property of PDF Container
!IsEmpty(DataSourceOfGallery)
Where i put DataSourceOfGallery you need to put the DataSource that you also put into your Gallery since you probably used a collection or filters to only get the Documents necessary.
You could also replace this container with an Image or something that states No Documents available. Like this there won't be any misunderstanding.