I am building a program with WinUI 3 and would like to hide the controls behind a transparent panel, like ContentDialog do, while the content is loaded.
I tried to find the source code of the ContentDialog to get an inspiration but can't find it. The disassembly only show the abstraction to, what I suppose, is the WinRT control.
I tried to edit the template, like we did in the plain old WPF period, but the is no option to do it.
I found a web site who do it by placing a stretched canvas in front of the controls by modifyind the ZIndex, but can't find this property for either a Grid or a Canvas.
So, the question is in multiple parts, but the main goal is the same as the subject. The questions would be :
- Is there a way to change the Z-Index?
- Is there a way to edit the ContentDialog themplate?
- Is the WinRT version of the ContentDialog source code available somewhere?
Thanks.