I have rectangle below which mission is to overlay above all other controls in the grid:
<Grid>
<Rectangle x:Name="TopPanel" Grid.ZIndex="3" Opacity="0.5">
<Rectangle.Fill>
<ImageBrush ImageSource="./Resources/Loader_128x128.gif" AlignmentX="Center" AlignmentY="Center" Stretch="None" />
</Rectangle.Fill>
</Rectangle>
<!-- Controls -->
</Grid>
I would like this rectangle to have in its center (X,Y) an image and under the image (also centered in horizontal) a text saying "Loading..." The image I have put is an animated gif.
How can I do this? I am only interested in XAML, not c# code.
Another problem I have is that my gif is not being animated. Why? In order to make gif animation work, I do not want to use extra packages.