I put some global Blazor Components in the MainLayout of my Blazor Server side app. They are used to show Alert, Confirmation, Warning, ...
From a child component, how can I get the reference to the MainLayout in order to call my global Alert, Confirmation functions?
The child component is dynamic and may be in any nested level. So we don't know how many level from it to the root MainLayout.
It is like the concept of ApplicationContext.MainForm in Winform app.