opaque element in a transparent in WPF
The reason why your rectangle is not fully opaque is because your container (the grid) has an opacity of .5, and opacity gets inherited to the child objects.
Instead, try changing the Background Brush of the Grid to something semi-transparent like:
<Grid Background="#66ff0000">
This should give you a semi-transparent Grid and a fully opaque rectangle.