How can I put one element under another and then reorder them (something like ZIndex)?
What I have done now is used Grid where two elements have same Grid.Column and Grid.Row but one of them is visible and other is not. The problem is that I need to make a “screenshot” of the control placed under another. But you can not do it if control’s Visibility is Hidden.
So I need a way to place one control under another without using Visibility.
Update. About screenshot. I am making it by RenderTargetBitmap and it doesn’t work if controlToConvert is Hidden.
Use a canvas instead of a grid as the controls parent. Now you can reorder them by using the
Canvas.ZIndexproperty, e.g. throughCanvas.SetZIndex();