Of course, just align it left and right using the panel! For example:
Horizontal stretch
<RelativePanel>
<TextBox RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignRightWithPanel="True" />
</RelativePanel>
If you want vertical stretching, do a similar thing, just align the top and bottom panel with the panel:
Vertical extension
<RelativePanel>
<TextBox RelativePanel.AlignTopWithPanel="True"
RelativePanel.AlignBottomWithPanel="True" />
</RelativePanel>
source
share